Quickly Write NSString to file

January 27, 2011 by · Leave a Comment 

NSError* error = nil;
[@"The String to write to the file..." writeToFile:@"/tmp/aFile.txt" atomically:NO encoding:NSASCIIStringEncoding error:&error];

About admin

Comments are closed.