RE: how do I shorten a file?

new topic     » topic index » view thread      » older message » newer message

daryl_vdb at HOTMAIL.COM wrote:
> How can I delete bytes from the end of a file opened for update (or 
> write)?
> 
Unfortunately you can't do that in DOS/Windows/Linux systems. Instead, 
you have to copy the parts of the file you want to a new file, then 
delete the old file and then rename the new file with the original name.

The seek() and where() statements help you navigate around a file but 
they don't influence shortening it, though seek() can be used to extend 
a file, I think.

-----
Derek.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu