• 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: using NSFileManager to read data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using NSFileManager to read data


  • Subject: Re: using NSFileManager to read data
  • From: Michael Vannorsdel <email@hidden>
  • Date: Sat, 14 Jun 2008 22:20:05 -0600

NSFileHandle itself. Use seekToFileOffset: and readDataOfLength: to get the bytes you want. Or you can drop down to the BSD layer and use open/close, lseek, and read.


On Jun 14, 2008, at 8:05 PM, Angelo Chen wrote:

Hi,

NSFileManager's contentsAtPath can read the entire file, is there a way to read only a specific bytes? something similar to NSFileHandle's readDataOfLength? thanks,

_______________________________________________

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: 
 >using NSFileManager to read data (From: Angelo Chen <email@hidden>)

  • Prev by Date: Re: NSOutlineView threading problem
  • Next by Date: Re: NSNotifications & background apps?
  • Previous by thread: Re: using NSFileManager to read data
  • Next by thread: NSOutlineView threading problem
  • Index(es):
    • Date
    • Thread