File Size and long longs...
File Size and long longs...
- Subject: File Size and long longs...
- From: email@hidden
- Date: Wed, 12 May 2004 16:05:27 -0700
ok heres the code which opens a file seeks to then end to retrieve the
file size:
NSFileHandle *fh = [NSFileHandle fileHandleForReadingAtPath:file];
NSNumber *totalFileSize = [NSNumber numberWithUnsignedLongLong:[fh
seekToEndOfFile]];
[fh closeFile];
NSLog(@"%@ - %d",file,totalFileSize);
this is what is output in the log
2004-05-12 16:01:43.524 Rebuild Utility[1154] ABPerson.index - 3313088
the file's size in the finder is - 392 KB - 401,408 bytes
whats up? any help?
_______________________________________________
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.