Hey you can write the string content to the file in the document folder like this:
//get the documents directory:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
//make a file name to write the data to using the documents directory:
NSString *fileName = [NSString stringWithFormat:@"%@/textfile.txt",documentsDirectory];
//save content of myTxtFile to the documents directory
**[myTxtFile writeToFile:fileName atomically:NO encoding:NSStringEncodingConversionAllowLossy error:nil];**
After executing this, you'll find a file named textfile.txt in the document folder with the content stored in it..
Cheers!!!