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 );
//...
}
Written by anil
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Related Tags
#java
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#