aspose file tools*
The moose likes Beginning Java and the fly likes Updating File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Updating File" Watch "Updating File" New topic
Author

Updating File

Anne Buena
Greenhorn

Joined: Mar 11, 2012
Posts: 14

Hi! Can someone please try to help me. I've been stacked here. I don't know what's the next step.





What I want to happen is to get the record from TimeRecord.txt, store each lline in an array, modify a specific line, then what? I'm hopeless. Thank you for the response !
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

I already told you in this thread to use a temporary file. RandomAccessFile is not a good candidate for reading text files, as one char may require more than 1 byte to store it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Updating File