• 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: Save Plain Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save Plain Text


  • Subject: Re: Save Plain Text
  • From: John Anderson <email@hidden>
  • Date: Sat, 6 Jul 2002 12:33:10 -0700

Perhaps I'm misunderstanding your question, but assuming that it's an NSString that you want to save to a file, just use something like this:

NSString *myNeatoString = @"Hello, world!";
NSString *myFilePath = @"/Users/Shared/hello.txt";

[myNeatoString writeToFile:myFilePath atomically:YES];

John Anderson


On Saturday, July 6, 2002, at 11:49 AM, Luca Torella wrote:

If I have a path and I'd save in it plain text what method do I have to use?

Thanks, Luca
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Save Plain Text
      • From: Ondra Cada <email@hidden>
References: 
 >Save Plain Text (From: Luca Torella <email@hidden>)

  • Prev by Date: Re: IB Palette & Nib Connector
  • Next by Date: Re: accessor generation???
  • Previous by thread: Save Plain Text
  • Next by thread: Re: Save Plain Text
  • Index(es):
    • Date
    • Thread