Fritter-my-wig
Registered
Of all the silly things...
I have not yet figured out how to read/write a simple textfile. NS(Un)Archive is a nice way to load/save files, but if the file I want to read is already in text form then I don't see a good way to do it. The best thought I've had (I haven't tried it yet) is NSFile<->NSData<->NSString, but there must be a better way to do it.
What I would really like is an equivalent to NS(Un)Archive that reads/writes in human-readable text form, at least for those objects which can be easily expressed that way.
Any thoughts/suggestions would be appreciated.
I have not yet figured out how to read/write a simple textfile. NS(Un)Archive is a nice way to load/save files, but if the file I want to read is already in text form then I don't see a good way to do it. The best thought I've had (I haven't tried it yet) is NSFile<->NSData<->NSString, but there must be a better way to do it.
What I would really like is an equivalent to NS(Un)Archive that reads/writes in human-readable text form, at least for those objects which can be easily expressed that way.
Any thoughts/suggestions would be appreciated.