I'm trying to include a method in my application that determines the size of a file such as: file.txt, file.app, file.png, etc. I have general idea of how to do this, tried the following, but my app crashes because of the NSLog function at the end:
NSString *yourPath = @"path/to/file";
NSFileManager *man = [[NSFileManager alloc] init];
NSDictionary *attrs = [man attributesOfItemAtPath: yourPath error: NULL];
UInt32 result = [attrs fileSize];
NSLog(@"Size: @%", result);