• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Parsing a simple text file, row per row (*solved*)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Parsing a simple text file, row per row (*solved*)
      • From: BK <email@hidden>
  • Prev by Date: Parsing a simple text file, row per row
  • Next by Date: Re: Checking System Version
  • Previous by thread: Re: Parsing a simple text file, row per row
  • Next by thread: Re: Parsing a simple text file, row per row (*solved*)
  • Index(es):
    • Date
    • Thread