Re: Writing NSString to a file
Re: Writing NSString to a file
- Subject: Re: Writing NSString to a file
- From: Erik Buck <email@hidden>
- Date: Thu, 1 Jun 2006 07:11:24 -0700 (PDT)
How about
-(void) writeString
{
[@"Hello From DinuJohn" writeToFile:[NSTemporaryDirectory() stringByAppendingPathComponent:@”temp.txt"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
}
Also, to get along with Cocoa and make it easy for Cocoa programmers to help you, you need to use Cocoa's naming conventions. Among other things, methods and non global variables start with lower case letters.
http://www.stepwise.com/Articles/Technical/2002-10-13.01.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden