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 \n??

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