FROM : Jean-Nicolas Jolivet
DATE : Sat Nov 17 23:51:20 2007
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?
DATE : Sat Nov 17 23:51:20 2007
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?
| Related mails | Author | Date |
|---|---|---|
| Jean-Nicolas Joliv… | Nov 17, 23:51 | |
| John Labovitz | Nov 18, 00:07 | |
| Shawn Erickson | Nov 18, 00:14 | |
| Jean-Nicolas Joliv… | Nov 18, 00:29 | |
| Shawn Erickson | Nov 18, 00:33 | |
| Jean-Nicolas Joliv… | Nov 18, 00:35 | |
| mmalc crawford | Nov 18, 00:44 | |
| Ricky Sharp | Nov 18, 00:44 |






Cocoa mail archive

