Delete Bytes from the Start of the Data Fork
Delete Bytes from the Start of the Data Fork
- Subject: Delete Bytes from the Start of the Data Fork
- From: Markus Schutt <email@hidden>
- Date: Mon, 12 Nov 2001 23:56:19 -0800 (PST)
I try to remove Bytes from the beginning of a Data
Fork. Right know I read the bytes I want into memory
and write them back to disk to a new file using the
read and write commands from the Standard Additions.
e.g. set theBytes to read "mytestfile" for 1000 at 67
write theBytes to "mynewfile" .
This is fine for small files, but it is to slow for
files with 200MB.
Does somebody know , how to delete the first 67 (e.g.)
Bytes from the Data Fork without copying the whole
file.
Cheers, Markus
PS: The size of a variable (for strings e.g.) is not
limited. You can read the 200 MB Data Fork into
memory, but the Program needs a 200 MB memory
allocation. Otherwise you get an Out of memory error.
Find the one for you at Yahoo! Personals
http://personals.yahoo.com