• 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: creating files to write data to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating files to write data to?


  • Subject: Re: creating files to write data to?
  • From: Devon Ferns <email@hidden>
  • Date: Fri, 15 Aug 2008 14:28:43 -0400

NSFileHandle writeData takes an NSData pointer not a string and that's actually not how you do a string, you're missing the @ in front of it.

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileHandle/writeData:>

Devon

FTB Accounts wrote:


/* WRITE DATA TO FILE: THIS IS A TEST */ [fh writeData:"THIS IS A TEST"]; [fh closeFile];

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: creating files to write data to?
      • From: FTB Accounts <email@hidden>
References: 
 >Re: creating files to write data to? (From: FTB Accounts <email@hidden>)

  • Prev by Date: Re: creating files to write data to?
  • Next by Date: Re: Making a bound view re-read its value
  • Previous by thread: Re: creating files to write data to?
  • Next by thread: Re: creating files to write data to?
  • Index(es):
    • Date
    • Thread