• 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
Re: [newbie] Reading a CSV file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] Reading a CSV file


  • Subject: Re: [newbie] Reading a CSV file
  • From: Itrat Khan <email@hidden>
  • Date: Tue, 4 Jun 2002 17:01:32 -0400

On Sunday, June 2, 2002, at 11:18 PM, Dan Wood wrote:

Here's some code that I am working on, to appear in a future MacTech article. Feel free to make use of it (and comment on it)! 

NSArray *lines = [self componentsSeparatedByString:@"\n"];


To separate a text file by lines, use NSString's getLineStart:end:contentsEnd:range instead. It's only a little more work, but it will properly handle various line endings for you (UNIX, Mac, DOS, etc.).

Regards.

..................................................................
Itrat Khan
Modeless Software, Inc.
http://www.modeless.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: [newbie] Reading a CSV file (From: Dan Wood <email@hidden>)

  • Prev by Date: Re: copyWithZone: -- selector not recognized
  • Next by Date: multiple declarations...
  • Previous by thread: Re: [newbie] Reading a CSV file
  • Next by thread: Re: [newbie] Reading a CSV file
  • Index(es):
    • Date
    • Thread