Last active
December 25, 2015 06:19
-
-
Save dsdstudio/6931207 to your computer and use it in GitHub Desktop.
NIO readAllLine from file, StandardCharsets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (String s : Files.readAllLines(Paths.get(file.getAbsolutePath()), StandardCharsets.UTF_8)) | |
buffer.append(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Java 7 New File IO