1. Seek/delete bytes from file...
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...
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