Re: How to: Save an Array into a File at a certain path?
Re: How to: Save an Array into a File at a certain path?
- Subject: Re: How to: Save an Array into a File at a certain path?
- From: j o a r <email@hidden>
- Date: Sat, 30 Aug 2003 16:54:40 +0200
See these methods from NSArray:
+ (id)arrayWithContentsOfFile:(NSString *)aPath
- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag
Easy as pie.
j o a r
On 2003-aug-30, at 16:34, Nebagakid wrote:
I am trying to save this array to the application support folder. The
problem is, I don't want the user to have to choose where to save it
to (as in needing dataRepresentationofType, right) ... I just want
that when a button is clicked, the array is archived and then saved
into a file at a path that I determine... But then, how could I reopen
that file when I need it? I hope I am being clear here
_______________________________________________
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.