Skip to content

Instantly share code, notes, and snippets.

@dsdstudio
Last active December 25, 2015 06:19
Show Gist options
  • Save dsdstudio/6931207 to your computer and use it in GitHub Desktop.
Save dsdstudio/6931207 to your computer and use it in GitHub Desktop.
NIO readAllLine from file, StandardCharsets
for (String s : Files.readAllLines(Paths.get(file.getAbsolutePath()), StandardCharsets.UTF_8))
buffer.append(s);
@dsdstudio
Copy link
Author

Java 7 New File IO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment