• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Delete Bytes from the Start of the Data Fork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Crontab v. Applescript & Command Line
  • Next by Date: RE: Working with text selections in Xpress
  • Previous by thread: Re: Crontab v. Applescript & Command Line
  • Next by thread: using tell with proc. serial numb. in OS X
  • Index(es):
    • Date
    • Thread