• 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
Write to a text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Write to a text file


  • Subject: Write to a text file
  • From: "Ben O'Neill" <email@hidden>
  • Date: Mon, 6 May 2002 13:19:34 +1000

Hello,
I am new to Cocoa and C development.
I want to write a text field to a text file when I click the save button. I have been trying to use the NSFileHandle object and writeData however, I can't seem t get it to write the file. Is this the correct approach? Does anyone have some sample code?

Others have suggested writing my text to an XML file, is this a better approach if I want to save records with fields in a text file?
Kind Regards
Ben
_______________________________________________
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: Write to a text file
      • From: Nathan Zamecnik <email@hidden>
  • Prev by Date: Re: Retain, then autorelease and then release does what?
  • Next by Date: Re: Write to a text file
  • Previous by thread: Re: Current application
  • Next by thread: Re: Write to a text file
  • Index(es):
    • Date
    • Thread