Re: Detecting new line character(s) in text file?
Re: Detecting new line character(s) in text file?
- Subject: Re: Detecting new line character(s) in text file?
- From: mmalc crawford <email@hidden>
- Date: Sat, 17 Nov 2007 15:44:41 -0800
On Nov 17, 2007, at 2:51 PM, Jean-Nicolas Jolivet wrote:
My application deals with text files... each line has to be parsed
so I split it with
[str componentsSeparatedByString:@"\n"]
however..this only works if I have a text file that was saved on a
mac... Is there an easy way to determine which new line character is
used in a textfile (eighther linux, mac or win) and then use this
for parsing afterward?
This is covered in the String Programming Guide...
mmalc
_______________________________________________
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