Re: Reading one line at a time using NSFileHandle
I read the CocoaBuilder thread to no avail. fgets won't work in my case because
my text file contains special characters which fgets mangles.
BTW, my file is not large - less than 1K. And I know it's encoding - MacRoman.
And I know the line endings "/n".
But what I don't know is which API to use to read non-ASCII lines of text one
at a time from one file, and write them to another file after processing each
One would think Cocoa would have something like fgets but that works with any
From: Matt Neuburg <matt@xxxxxxxxxxx>
To: Erg Consultant <erg_consultant@xxxxxxxxx>
Sent: Thursday, March 26, 2009 7:24:29 AM
Subject: Re: Reading one line at a time using NSFileHandle
On Wed, 25 Mar 2009 19:36:01 -0700 (PDT), Erg Consultant
>Is there a way to read one line of a text file at a time using NSFileHandle
(the way fgets does)?
Is it my imagination or did we not just have a big thread about this...?
matt neuburg, phd = matt@xxxxxxxxxxx, <http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lis...
Help/Unsubscribe/Update your Subscription:
This email sent to maillists@xxxxxxxxx