1. Seek/delete bytes from file...
- Posted by LEVIATHAN <leviathan at USWEST.NET> Jan 11, 2001
- 423 views
Heya all! I want to seek to a certain byte of a file, and delete n bytes from that byte on, and the catch: I don't have the file in memory. How can I go about this? TIA, --"LEVIATHAN"
2. Re: Seek/delete bytes from file...
- Posted by Eddy Van Esch <raimundo4u at YAHOO.COM> Jan 11, 2001
- 418 views
On Thu, 11 Jan 2001 01:01:21 -0800, LEVIATHAN <leviathan at USWEST.NET> wrote: >Heya all! > >I want to seek to a certain byte of a file, and delete n bytes from that >byte on, and the catch: I don't have the file in memory. How can I go >about this? > >TIA, > >--"LEVIATHAN" I think you can't do this directly. You have to copy the bytes you need to a new file and leave out the bytes you don't need. Then delete the original file and rename the newly created file to the original filename... Eddy