size_t s = 1000*50000;
char *big = malloc(s);
NSData *d = [NSData dataWithBytesNoCopy:big length:s freeWhenDone:YES];
NSString *name = @"dacai";//[[[[NSUUID UUID] UUIDString] substringToIndex:5] lowercaseString];
NSURL *fullPath = [NSURL fileURLWithPath:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0] stringByAppendingPathComponent:name]];
[d writeToFile:fullPath.path atomically:NO];
uint64_t bytesTotalForThisFile = [[[NSFileManager defaultManager] attributesOfItemAtPath:fullPath.path error:NULL] fileSize];
NSLog(@"%@",fullPath);