Created
January 6, 2016 18:49
-
-
Save bmchild/2313ec79fae936822dbb to your computer and use it in GitHub Desktop.
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
String filePath = this.getClass().getClassLoader().getResource("folder/file.txt").getFile(); | |
String fileContent = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment