Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Inserting Text w/RandomAccessFile

  Asked By: Ryan    Date: Oct 31    Category: Java    Views: 1065
  

I haven't been able to find the answer to
this in the books I have, though I suspect it is fairly common.

I have a text file I want to insert into at a specific location. I want to
insert text exactly one line above the final line of the file. So, for
example, if the file ends with ###, I want to look for that, then insert
text one line above.

I've already figured that I need to use RandomAccessFile, but I'm not sure
how, exactly. Any clues or pointers to help would be greatly appreciated.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Inserting Text w/RandomAccessFile Or get search suggestion and latest updates.