Appending to text file... best way?
Appending to text file... best way?
- Subject: Appending to text file... best way?
- From: Dave DeLong <email@hidden>
- Date: Fri, 10 Jun 2005 12:59:00 -0500
Hi everyone (again),
I've got a text file that I need to write lots of stuff to (auto-generating HTML files). I was wondering what the best way to go about doing this would be.
I've tried NSString's "writeToFile", but it has enormous overhead and I saw my remaining hard drive space spiral down the further along it got. It's also not very fast.
I've been looking at NSOutputStream's write method, but I'm not exactly sure what all "(const uint8_t *)" means or how I would go about writing an NSString via the write method.
I also found on Cocoadev.com something about using an NSFileHandle, but the only "write" method I found was one involving NSData, which isn't what I'm looking for (I think).
Any recommendations?
Thanks!
Dave |
_______________________________________________
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