File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating File

 
Anne Buena
Greenhorn
Posts: 14
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20381
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic