ASCII File IO
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