• 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: Save to file or db
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Save to file or db


  • Subject: re: Save to file or db
  • From: Simon Davies <email@hidden>
  • Date: Wed, 28 Feb 2007 13:41:59 +0000

i have seemed to have saved some variable to file using :

NSString* myTextToWrite = @"welcome to my file, its writing juxt need it to do the rest";

[myTextToWrite writeToFile:[NSHomeDirectory() stringByAppendingPathComponent: @"Desktop/mytext"] atomically:YES];

1) My next two questions relating to this is what do I need to add to this to append the text to previous text on the file?

2) The file"mytext" that it writes on has no extension which it still opens in textedit but to be used by another program I think i need the extension ".txt" can this be acheived at all?


Thanks so far. _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Save to file or db
  • Next by Date: Re: Save to file or db
  • Previous by thread: Save to file or db
  • Next by thread: Re: Save to file or db
  • Index(es):
    • Date
    • Thread