Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using linereader  RSS feed

 
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: 9406
12
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
Posts: 20895
81
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
Boost this thread!