Re: To read and write in a binary file
Re: To read and write in a binary file
- Subject: Re: To read and write in a binary file
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 2 Jan 2008 17:36:33 -0700
On Jan 2, 2008, at 2:26 PM, Eric PETIT wrote:
With Carbon, I used FSOpenFork and FSReadFork / FSWriteFork fonctions.
Which are in Cocoa the equivalents of this Carbon functions ?
That depends on whether you want to load the whole file into memory
and write it back out, or you want to use an I/O stream. If the
former, then use NSData's file methods. If the latter, then use
NSFileHandle.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden