• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Read lines from very large text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Read lines from very large text file
      • From: Michael Ash <email@hidden>
References: 
 >Read lines from very large text file (From: Jacob Rhoden <email@hidden>)
 >Re: Read lines from very large text file (From: Kenneth Bruno II <email@hidden>)
 >Re: Read lines from very large text file (From: Jacob Rhoden <email@hidden>)
 >Re: Read lines from very large text file (From: Joar Wingfors <email@hidden>)
 >Re: Read lines from very large text file (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: subpixel rendering vs. layer backed views
  • Next by Date: Re: Cocoa Event Monitor?
  • Previous by thread: Re: Read lines from very large text file
  • Next by thread: Re: Read lines from very large text file
  • Index(es):
    • Date
    • Thread