Created
November 10, 2014 23:15
-
-
Save birchestx/c7c1fc662fa535a10fd3 to your computer and use it in GitHub Desktop.
I line mechanism to read a file in java - sweet! From https://weblogs.java.net/blog/pat/archive/2004/10/stupid_scanner.html
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 text = new Scanner( new File("poem.txt") ).useDelimiter("\\A").next(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment