Delete the text from the file after reading that line
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Siddhartha_Mehta
Posted On:   Wednesday, June 6, 2001 04:26 PM

I am reading a file using BufferedReader.readLine(). After reading a line, I would like to delete that line (based on some condition). How can I do that??

Re: Delete the text from the file after reading that line

Posted By:   Tim_Rohaly  
Posted On:   Thursday, June 7, 2001 02:22 PM

Use RandomAccessFile instead - the
stream classes like BufferedReader
can only read sequentially from start to finish.
About | Sitemap | Contact