[Mpls-pm] Stupid peel question

Chris cpj1 at visi.com
Wed Nov 14 12:53:43 PST 2007


Let's say I have a 500mb file, and I want to use IO:File to write data  
to the middle of the file.

I used w+ mode, seeked a position, wrote my string, then seeked to the  
end of the file, but it was still truncated to the end of the last  
write.  My goal was to keep the file size constantly at 500mb.

Is there something I'm missing?  Will I have to resort to reading the  
entire file into memory?

--
Chris J
Sent from my iPhone


More information about the Mpls-pm mailing list