title: iPhone Saving File
body: <p>to every one, i am doing xml parsing and i am getting two text files from the server with contents
  i have stored the contents of the first file document directory however when parsing function call second time the contents are overwritten by second file, i don't know how to create two txt file in document directory for two different contents        </p>
  
  <pre><code>paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
          documentsDirectory = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"Report.txt"];
          [text writeToFile:documentsDirectory atomically:NO];
          [text release];
  </code></pre>
  
  <p>I have taken the content for the first file with this method.</p>