Last active
November 26, 2015 00:49
-
-
Save pivotaljohn/498d0573a99023746466 to your computer and use it in GitHub Desktop.
Idiom: Load a text file as a resource into a String.
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 contentsOfFile = Resources.toString(Resources.getResource("path/to/resource"), Charsets.UTF_8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment