• 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: createFileAtPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >createFileAtPath (From: Simone Gabbriellini <email@hidden>)

  • Prev by Date: Re: What is stored in .pbxuser file?
  • Next by Date: Re: possible to debug makefile-based project?
  • Previous by thread: RE: createFileAtPath
  • Next by thread: Weak linking? Or what?
  • Index(es):
    • Date
    • Thread