Re: Modify Data Fork
Re: Modify Data Fork
- Subject: Re: Modify Data Fork
- From: John W Baxter <email@hidden>
- Date: Fri, 16 Nov 2001 14:06:51 -0800
At 11:51 -0800 11/15/2001, Markus Schutt wrote:
>
Does somebody know , how to delete the first 50(e.g.)
>
Bytes from the Data Fork without copying the whole
>
file.
No. (That's refreshing...usually the proper but useless answer to "Does
someone know how to..." is "yes")
You can't, because the file system doesn't know about files "starting"
anywhere except at the first byte of a physical chunk of disk.
The best you could do would be to cover up the first 50 characters with
some character which all users of the particular sort of file agree means
"ignore me". Until C, the obvious character was ASCII NUL (all zero bits)
unless someone came from a paper tape background in which case it was DEL
(all one bits...ie punch all the holes to cover up an error...in some cases
DEL was a parity error which had to be ignored).
You would have a fighting chance of deleting the first 512 characters...but
you would be much more likely to create a corrupt disk by trying than to
succeed.
--John