Re: writeToFile method of NSArray
Re: writeToFile method of NSArray
- Subject: Re: writeToFile method of NSArray
- From: David Remahl <email@hidden>
- Date: Thu, 15 May 2003 14:04:00 +0200
[[stringArray componentsJoinedByString:@"\n"] writeToFile:someFile
atomically:NO];
/ Rgds, David
On Thursday, May 15, 2003, at 01:44 PM, Parichay Gupta wrote:
Hi,
In my Cocoa/Objective-C application, I have a NSArray of NSString
objects.
Whenever I'm trying to dump the content of the NSArray into a text
file using
its writeToFile method, the text file is getting created with the XML
format.
Can I simply dump the content line by line (instead of XML format)?
For example, the content of the text file needs to be like the
following
This is the first string of NSArray
This is the second string of NSArray
This is the third string of NSArray
...
TIA,
Parichay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.