On Wed, Aug 31, 2011 at 4:21 PM, dct <[email protected]> wrote:
> Jon
>
> Or, knowing the path,  you might try using NSFileHandle :
>
>  NSFileHandle   *hndl = [NSFileHandle fileHandleForReadingAtPath:path];
>  long long             lngth = [hndl seekToEndOfFile];
>
> This gets you the length in bytes.

And loads the entire file into memory!!

There are so many better approaches that have already been mentioned
in this thread.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to