On Sep 19, 2008, at 3:15 PM, Jordon Hirshon wrote:
How can I read a file a line at a time (i.e. getline)? I'm trying to do this in a Cocoa Framework.
Try using NSFileHandle to read a file until a line feed is encountered. There's no built-in method of stopping at a character, but you could always read it in byte by byte.
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]