iPhone Saving File
- by Kashif
Hi, 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        paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
        documentsDirectory = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"Report.txt"];
        [text writeToFile:documentsDirectory atomically:NO];
        [text release];
I HAVE TAKEN THE CONTENT FOR THE FIRST FILE WITH THIS METHOD.