• 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
Read last x bytes of a text file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read last x bytes of a text file?


  • Subject: Read last x bytes of a text file?
  • From: Alex Kac <email@hidden>
  • Date: Mon, 17 Aug 2009 21:57:08 -0500

I'm sure there is a great way to do this, but I seem to not find it. I have a potentially large text file that I wish to only show the last 32k worth - it could be 200MB. So I was looking at NSInputStream, but perhaps I'm being dense or its the wrong tool for the job, but I cannot find a way to tell it to start at byte x of the file.

Ideally, I'd like to do something like the tail command app works. Any pointers?
_______________________________________________


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 last x bytes of a text file?
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Next by Date: Re: Read last x bytes of a text file?
  • Previous by thread: Custom grid view
  • Next by thread: Re: Read last x bytes of a text file?
  • Index(es):
    • Date
    • Thread