• 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: Peter Duniho <email@hidden>
  • Date: Mon, 2 Feb 2009 19:35:41 -0800


On Feb 2, 2009, at 6:56 PM, Kenneth Bruno II wrote:

On Feb 2, 2009, at 9:29 PM, Peter Duniho wrote:

Is there not a Cocoa class that handles character encoding and line- based reading from files, streams, etc.? And an equivalent one for writing?

That seems like an odd omission for a comprehensive framework.

NSString handles such things,

Not really, as I understand it, for my definition of "such things".

the only thing I'm not sure is how it will handle a truly large multi-gigabyte text file

The point of a line-based API is so that the file can be read one line at a time, rather than all at once.


(not that anyone is likely to have such a beast).

Large text files (as large as that) do occur in the wild. You'd be surprised.


So, I take it that there is in fact no line-based character-decoding/ encoding class in Cocoa? Very odd indeed.

Pete
_______________________________________________

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


References: 
 >Read lines from very large text file (From: Jacob Rhoden <email@hidden>)
 >Re: Read lines from very large text file (From: Alexander Spohr <email@hidden>)
 >Re: Read lines from very large text file (From: Jacob Rhoden <email@hidden>)
 >Re: Read lines from very large text file (From: Robert Martin <email@hidden>)
 >Re: Read lines from very large text file (From: Seth Willits <email@hidden>)
 >Re: Read lines from very large text file (From: Joar Wingfors <email@hidden>)
 >Re: Read lines from very large text file (From: Seth Willits <email@hidden>)
 >Re: Read lines from very large text file (From: Peter Duniho <email@hidden>)
 >Re: Read lines from very large text file (From: Kenneth Bruno II <email@hidden>)

  • Prev by Date: Re: Read lines from very large text file
  • Next by Date: Re: Read lines from very large text file
  • 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