Re: [Q] large flat files usage
Re: [Q] large flat files usage
- Subject: Re: [Q] large flat files usage
- From: Sherm Pendley <email@hidden>
- Date: Wed, 19 Jun 2002 16:53:34 -0400
On Wednesday, June 19, 2002, at 04:13 PM, Phillip Morelock wrote:
Now I'm in a situation where I have some enormous flat files to work
with
(we're talking 5, 10 megs, etc.).
This is 2002... 5 or 10 terabytes is enormous. 5 or 10 megs is merely
large. :-)
Of course I am hoping there's some "dyno-MITE" Cocoa way of doing this,
but
a little messy C library stuff is just fine with me.
Check out the NSFileHandle class. It defines the methods you need to
seek to specific points in the file and read/write data at those points.
These methods take 64-bit "long long" parameters, so they can be used
with truly huge files.
As you've correctly pointed out, the equivalent "messy C" functions are
fopen, fseek, ftell, fread, and fwrite.
Hope this helps!
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.