Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read file line by line

 
mic ta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Is it possible to read files line by line without using != null maybe with a for loop?

Best regards,
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to check for != null at some time. How else would you find out if you've read the entire file?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic