Created
August 15, 2012 09:05
-
-
Save pete911/3357848 to your computer and use it in GitHub Desktop.
convert file to array
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 fileContent = new Scanner(file).useDelimiter("\\A").next(); | |
String[] fileLines = fileContent.split(System.lineSeparator()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment