Re: Reading text files line-by-line (dead link from archive)
Re: Reading text files line-by-line (dead link from archive)
- Subject: Re: Reading text files line-by-line (dead link from archive)
- From: Daniel Dickison <email@hidden>
- Date: Tue, 28 Aug 2007 15:18:22 -0400
On Aug 28, 2007, at 3:09 PM, Scott Thompson wrote:
Do you need to handle ASCII text files, UTF-32, UTF-16, UTF-8, or
some combination of all of them?
I believe it's only ASCII, but the source of the data in question is
not particularly clear about that. It _does_ have to work with both
Unix-style and Windows-style line endings.
Right now I'm using NSScanner with a completely in-memory NSString,
but the code has to scale well for very large text files (it's for
text-based eye tracking data files) -- which might not actually be a
problem, but seems like it would. Ok, I admit: I'm committing
premature optimization.
Daniel
_______________________________________________
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