re: Save to file or db
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