File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Puneet N Vyas
Joined: Sep 20, 2007
Mar 18, 2008 06:10:00
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
Joined: Oct 29, 2001
Mar 18, 2008 06:37:00
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
Joined: Oct 27, 2005
Mar 18, 2008 08:21:00
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: using linereader
while is while( ! done ) better?
reading SMTP mail text file
Simple tail utility
A kinder, gentler API for reading lines
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014