Who is writing to file? Maybe you don't need to read the file, but the lines that are written by the process.
But if the files closes and then someone else tries to append something else to that file with a new writer then if you don't remember what was written by the first writer then you would have to read the file.
Perhaps if you explain your problem better you would get a better answer, but checking the RandomAccessFile class might be a good place to start.
Last edited by javaAddict; Feb 9th, 2010 at 11:42 am.
Reputation Points: 1005
Solved Threads: 446
Nearly a Senior Poster
Offline 3,256 posts
since Dec 2007