• 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
Re: To read and write in a binary file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >To read and write in a binary file (From: Eric PETIT <email@hidden>)

  • Prev by Date: Re: Cocoa with Objective-C
  • Next by Date: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Previous by thread: To read and write in a binary file
  • Next by thread: Re: To read and write in a binary file
  • Index(es):
    • Date
    • Thread