I am parsing subtitles file...(text subtitles for divx movies etc..)
Depending on the format they need to be parsed differently, but in any
cases, I need to find out what linebreak character is used so I can
parse them...
Shawn Erickson wrote:
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?
What are you trying? (not how you are currently trying to do it)