Parsing a simple text file, row per row (*solved*)
Parsing a simple text file, row per row (*solved*)
- Subject: Parsing a simple text file, row per row (*solved*)
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 1 Aug 2005 10:50:17 -0700
NSArray *acRawRows = [acDataString
componentsSeparatedByString:@"\n"]; <-- doesn't see
"\n" (apparently).
It turns out that I had the text file saved in Mac vs Unix format.
So the line breaks use CR vs NL. So the correct delimiter is '\r'
and not '\n'.
...Sigh; just more to remember.
Ric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden