iPhone Saving File

Posted by Kashif on Stack Overflow See other posts from Stack Overflow or by Kashif
Published on 2011-03-10T08:07:33Z Indexed on 2011/03/10 8:10 UTC
Read the original article Hit count: 179

Filed under:

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.

© Stack Overflow or respective owner

Related posts about iphone