• 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
ASCII File IO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ASCII File IO


  • Subject: ASCII File IO
  • From: Randy Bradley <email@hidden>
  • Date: Wed, 16 Mar 2005 16:22:03 -0600

Hi All,

I just worked through the chapter on archiving in Hillegass's book and I'm amazed at how easy it is to save and load data from my application. Now I want to explore exporting and importing data to and from other applications which will typically be stored in text files. I'm stumbling a little here. I take it I want to implement "readFromFile" and "writeToFile".

Would one want to override readFromFile to create an NSData "dataWithContentsOfFile" and pass it on to "loadDataRepresentation:ofType" for files of my type, but use standard "fopen" and "fgets" if it is a text file?

Thanks for any advice,

Randy



*************************************
Randy Bradley
IT Specialist
USDA  ARS  MARC
Clay Center, NE     68933

email@hidden
phone:  402-762-4156
*************************************

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: ASCII File IO
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Fwd: button with multiple icons
  • Next by Date: help with archiving bug, a head-scratcher
  • Previous by thread: Fwd: button with multiple icons
  • Next by thread: Re: ASCII File IO
  • Index(es):
    • Date
    • Thread