Re: [Newbie] writing plain text to a file
Re: [Newbie] writing plain text to a file
- Subject: Re: [Newbie] writing plain text to a file
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 3 Mar 2003 13:42:54 -0800
On Friday, February 28, 2003, at 06:36 PM, Scott Anguish wrote:
On Friday, February 28, 2003, at 09:23 PM, John C. Randolph wrote:
{12 lines of code snipped}
What about
BOOL wroteFile=[[theArray componentsJoinedByString:@"\n"]
writeToFile:path atomically:YES];
That works, but it's not quite as descriptive as the 12 lines ;-)
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.