Created
February 1, 2015 22:29
-
-
Save ColdSauce/f123fdeb52d23ea79160 to your computer and use it in GitHub Desktop.
Read file line by line in Java
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 line = ""; | |
Bufferedreader br = new BufferedReader(new FileReader(new File("your file location"))); | |
while((line = br.readLine()) != null){ | |
// do stuff with line | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment