• 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: Append to file with NSString writeToFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Append to file with NSString writeToFile:


  • Subject: Re: Append to file with NSString writeToFile:
  • From: Harilaos Skiadas <email@hidden>
  • Date: Mon, 28 Feb 2005 00:41:10 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

James,

   As Magnus pointed out, you probably want to look
into the NSFIleHandle methods for writing to a file.
I.e. create the file you want to put all your info in,
open it and attach file handle to it, use this handle
to send all the data from all the files your other
task is processing, and then when you are done close
the file and clean up.

You could also keep one big string object, add all the
info there, and then write to the file only once....
But I guess it could end up being a pretty big string
depending on how much stuff we are talking about. Just
something to consider to avoid all the file updating.

Haris




__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
 _______________________________________________
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

  • Prev by Date: confused by signal error (newbie)
  • Next by Date: Changing initial value of isDocumentEdited
  • Previous by thread: Re:Append to file with NSString writeToFile:
  • Next by thread: Re: Re: Append to file with NSString writeToFile:
  • Index(es):
    • Date
    • Thread