write data line by line on iphone
<p>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??</p>

<p>this is my code</p>

<pre><code>NSString *cc=@"1";

    [cc writeToFile:storePath atomically:YES];

    NSString *myText1 = [NSString stringWithContentsOfFile:storePath];

    NSLog(@"text is %@",myText1);
</code></pre>

<p>this gives me 1 now i want to add 2 like 1 and then 2</p>
