• 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
Re: How to: Save an Array into a File at a certain path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to: Save an Array into a File at a certain path? (From: Nebagakid <email@hidden>)

  • Prev by Date: OT -Someone is spoofing my email address
  • Next by Date: Re: OT -Someone is spoofing my email address
  • Previous by thread: How to: Save an Array into a File at a certain path?
  • Next by thread: OT -Someone is spoofing my email address
  • Index(es):
    • Date
    • Thread