Re: Read lines from very large text file
Re: Read lines from very large text file
- Subject: Re: Read lines from very large text file
- From: Joar Wingfors <email@hidden>
- Date: Sat, 7 Feb 2009 23:44:49 -0800
On Feb 7, 2009, at 7:13 PM, Michael Ash wrote:
What's wrong is that they won't allow you to specify the text
encoding to
use. The same thing is true for the *deprecated* method
"+stringWithCString:" by the way.
That is incorrect.
I don't think that what I said is incorrect, at least not wrt. what I
wanted to express: Not being able to specify the encoding is probably
the most significant problem shared between these two API:s. Since
it's been established that the OP is working on ASCII data it's not a
problem in his particular case (Yay!), but it is a problem in general.
<snip>
There's a substantial difference between simply passing data through
unconverted and attempting to convert it but getting the conversion
wrong.
I don't think that there is any difference, since you're
*interpreting* the data as a sequence of characters in both cases.
fgets and friends are documented to be operations on characters and
strings, not bit patterns and opaque data buffers. But perhaps best to
agree to disagree at this point, I don't think we're really getting
anywhere, and this thread is really starting to get old...
j o a r
_______________________________________________
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