Last Updated: February 20, 2016
·
360
· aniljava

Iterating lines from a text file

Copy paste following java Class to your library.

https://gist.github.com/2952678

for(String line: new LineReader("filename.txt")){
    System.out.println( line );
    //...
}