1. RE: how do I shorten a file?
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 08, 2002
- 444 views
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.