Created
April 28, 2015 07:17
-
-
Save jonashackt/fffd9a55fe020a7756f9 to your computer and use it in GitHub Desktop.
Read Files Java 8
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
String requestFolder = "requests/"; | |
String file; | |
URI filepathUrl = this.getClass().getClassLoader().getResource(requestFolder + fileName).toURI(); | |
Path filepath = Paths.get(filepathUrl); | |
file = Files.lines(filepath).collect(Collectors.joining()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment