Re: createFileAtPath
Re: createFileAtPath
- Subject: Re: createFileAtPath
- From: Michael Taubert <email@hidden>
- Date: Sat, 10 Jan 2004 09:50:15 +0100
Hi Simone,
here is what I am using
[[NSFileManager defaultManager] createFileAtPath: fileOutputPath
contents:Data attributes:nil];
where the variable fileOutputPath contains an absolute path like
'/tmp/foo.txt'
Ok, here are more arguments used, but I guess you know what they mean,
don't you?
Regards,
Michael
hello!
anyone there who knows the correct syntax for createFileAtPath? I mean,
what I need is an example of the code, not the definition (I read it in
the Apple documentation): let's say I want to write down a file called
"pippo.txt" when I press a button. I already got this by Interface
Builder:
- (IBAction)aggiungi:(id)sender
{
[createFileAtPath:("pippo.txt")]; // this part doesn't work!!!
}
thank you so much,
Simone
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.