i can write to a text file on iphone..but each time i write my previous value is erased, is there any way to keep writing data separated by
??
this is my code
NSString *cc=@"1";
[cc writeToFile:storePath atomically:YES];
NSString *myText1 = [NSString stringWithContentsOfFile:storePath];
NSLog(@"text is %@",myText1);
this gives me 1 now i want to add 2 like 1 and then 2
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…