• 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: Jacob Rhoden <email@hidden>
  • Date: Tue, 03 Feb 2009 07:51:43 +1100

Yea, I saw this and some posts on the apple forum saying NSInputStream is not the right way, hence the question, what is the right way to analyze a very large file line by line.

cf the apple thread http://discussions.apple.com/thread.jspa?threadID=1187120&tstart=400

On 3/2/09 12:57 AM, Alexander Spohr wrote:
NSInputStream?

Am 02.02.2009 um 14:42 schrieb Jacob Rhoden:
I am wondering what the best way to read a text file, line by line, when the file size is much larger than available memory.

I know there are helper functions like stringWithContentsOfFile:encoding:error:, but this implies having to load the entire file in memory. Google has not been of much extra help here.

Thanks!
Jacob

_______________________________________________

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>
    • Re: Read lines from very large text file
      • From: Robert Martin <email@hidden>
    • Re: Read lines from very large text file
      • From: Robert Martin <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>)

  • Prev by Date: RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)
  • Next by Date: Re: becomeFirstResponder override issue
  • 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