On Feb 2, 2009, at 9:55 PM, Michael Ash wrote:
It hasn't been addressed because it's not really relevant to the question at hand. Yes, you definitely need to either know or be able to discover the text encoding of the text files you're dealing with. But aside from both being about text files, that question is unrelated to the question of how to process a large text file line-by-line.
Would a correct implementation not depend on being able to iterate over characters, and not simply using a fixed step size? I wanted to call attention to this because I, perhaps incorrectly, assumed that it would be. I think that providing a general solution to this problem, one that works for all text encodings, is difficult enough that it should be provided by a library. That said, most developers (the OP included) probably wouldn't require a completely general solution, and might be able to cobble together something that works fine with the data that they have to deal with.
j o a r _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com