| Author |
using linereader
|
Puneet N Vyas
Ranch Hand
Joined: Sep 20, 2007
Posts: 61
|
|
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
Joined: Oct 29, 2001
Posts: 8263
|
|
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.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Use java.io.LineNumberReader.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: using linereader
|
|
|