Re: Loading array from file [easy?]
Re: Loading array from file [easy?]
- Subject: Re: Loading array from file [easy?]
- From: Larry Fransson <email@hidden>
- Date: Fri, 23 Jul 2004 00:44:25 -0700
On Jul 22, 2004, at 23:27, Kodex wrote:
I have an array that i write to a file. I want to load
that array back into my program at awakefromnib.
[snip code]
Whoa. You don't mention how you wrote the array to the file, but
generally, if all you want to do is write an array to a file and load
it from the file later, -writeToFile:atomically: should do the writing
just fine, and initWithContentsOfFile: should read it back in. You
don't have to convert to & from a property list. That is done for you.
Larry Fransson
Seattle, WA
_______________________________________________
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.