Posted: Sun Sep 22, 2002 11:26 am
Restored from previous forum. Originally posted by PB.
Sometimes I need to load a massive file (say 800 MB) into memory so I
can alter some bytes, then write it back to disk over itself. However,
let's say I have only 64 MB of RAM on my system. What would happen?
Would PureBasic crash? Would it use the paging file? I don't want to
wreck anyone's system by doing this when I release my app, you see...
You may ask why don't I directly modify the file on disk? Well, okay,
but what's the most efficient way to do this? I can't open the file
and write it to another -- what if there is only 20 MB free on the
drive? Besides, I must overwrite the existing file, not create another.
Any advice appreciated on the best way to accomplish this.
PB - Registered PureBasic Coder
Sometimes I need to load a massive file (say 800 MB) into memory so I
can alter some bytes, then write it back to disk over itself. However,
let's say I have only 64 MB of RAM on my system. What would happen?
Would PureBasic crash? Would it use the paging file? I don't want to
wreck anyone's system by doing this when I release my app, you see...
You may ask why don't I directly modify the file on disk? Well, okay,
but what's the most efficient way to do this? I can't open the file
and write it to another -- what if there is only 20 MB free on the
drive? Besides, I must overwrite the existing file, not create another.
Any advice appreciated on the best way to accomplish this.
PB - Registered PureBasic Coder