Re: using NSFileManager to read data

2008-06-14 Thread Michael Vannorsdel
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

Re: using NSFileManager to read data

2008-06-14 Thread Jens Alfke
On 14 Jun '08, at 7:05 PM, Angelo Chen wrote: 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, Umm... yes, it's NSFileHandle. Just like you said. Or use NSInputStream. Or f