Write to the end of a file
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