This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19654
    
  18

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
 
 
subject: Updating File
 
Similar Threads
problem with actionEvent command
Need help.-RandomAccessFile again
Reading File Problem
Help Parsing a file