dcsimg
Append file in the middle
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dattaraj_Joshi
Posted On:   Wednesday, February 13, 2002 09:32 PM


Hi,
In my java program, I have to open a file and append it. Appending can be anywhere in the file. It may be in the middle or at the end of the file.
Is there anyway to append file in the middle using java?

Thanks in advance for help....

---
Dattaraj Joshi

Re: Append file in the middle

Posted By:   Stephen_Ostermiller  
Posted On:   Thursday, February 14, 2002 07:43 AM

To insert into the middle of a file, you must copy everything after the insertion point into memory or a temporary file, write the data that you wish to append, and write the end of the file back on.
About | Sitemap | Contact