• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using linereader

 
Puneet N Vyas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can know the number of lines a file contents via simple logic,but how can i use Linereader to know the current number of line we are in a text file....


thanks for support
 
Joe Ess
Bartender
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A search for "linereader" turns up over 16,000 hits. Perhaps you can narrow down which linereader you are using?
Chances are you will have to keep a local count of lines if you want to know which line you are on.
 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use java.io.LineNumberReader.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic