• 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
Write to the end of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Write to the end of a file


  • Subject: Write to the end of a file
  • From: d2kagw <email@hidden>
  • Date: Thu, 25 Jan 2007 07:23:44 +1100

Hi there,

my application needs to write to a log file, and currently i'm using a NSString to load the file into memory, append some data and write back to the file, but as the log file gets larger and larger the scaling of the application is greatly effected ( since theres now a few hundred thousand lines in the log, and it isn't getting smaller )

Is there a way to get Cocoa to just append to the file without first loading the whole thing into memory???

Cheers

- Az
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Write to the end of a file
      • From: Spencer Salazar <email@hidden>
  • Prev by Date: Re: Lucene/Cocoa integration
  • Next by Date: Re: Write to the end of a file
  • Previous by thread: relationships cross xdatamodel
  • Next by thread: Re: Write to the end of a file
  • Index(es):
    • Date
    • Thread