I donβt fully understand the question, but you can try every time you save the text, first read the text already in the file, then use stringByAppendingString. For example, the code
NSString *begRainbow = @"Red orange yellow green"; NSString *fullRainbow = [begRainbow stringByAppendingString:@" blue purple"];
FullRainbow leaves with the value "Red Orange Yellow Green Blue Purple".
source share