Skip to content

Instantly share code, notes, and snippets.

@nikuyoshi
Created August 15, 2016 16:01
Show Gist options
  • Save nikuyoshi/1cf1dd7168f65c2aa17d1f99b2ef235f to your computer and use it in GitHub Desktop.
Save nikuyoshi/1cf1dd7168f65c2aa17d1f99b2ef235f to your computer and use it in GitHub Desktop.
ファイルを一行で読み込む
public class AAA{
public void main(){
String str = new String(Files.readAllBytes(Paths.get("fuga.txt")));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment