• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Newbie] writing plain text to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: i
  • Next by Date: NSMovieView bug?
  • Previous by thread: FW: [Newbie] writing plain text to a file
  • Next by thread: Re: Writing a 0xFE to the serial port
  • Index(es):
    • Date
    • Thread