Created
August 11, 2018 09:38
-
-
Save sunxboy/14e311c17a4e383c9082615769243efd to your computer and use it in GitHub Desktop.
java test file read all lines
This file contains hidden or 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
private String readFirstLine(String filename) throws IOException { | |
return Files.readFirstLine(new File(Resources.getResource(filename).getFile()), StandardCharsets.UTF_8); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment