[futurebasic] [FB] Writing to portions of file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: "Chris Pereira" <nidus@...>
Date: Fri, 14 May 1999 15:16:35 -0400
Hi all,

Is it possible to write data to a specific portion of a file without
re-writing the entire file? Let me elaborate:

Let's say I have a 2.7 Mb document. If I want to modify 32 bytes of data in
the middle of the file, I would normally read the entire 2.7 Mb into memory,
modify the data, then re-write the entire 2.7 Mb back to the file.

What I would like to do is:
1. Read only the 32 bytes of interest into memory
2. Modify it.
3. Replace the old 32 bytes with the new.

Can this be done?

Any pointers will be appreciated.