Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Hey, does anyone know how to save into a .txt file? I know how to read them just need to write.


Code:
NSError *error;
	NSData *data = [myString dataUsingEncoding:NSUTF8StringEncoding];
	BOOL success = [data writeToFile:PATHTOFILE options:0 error:&error];
	if(!success){
		NSAlert *a = [NSAlert alertWithError:error];
		[a runModal];
	}

Hope that helps 🙂
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.