Re: [newbie] Reading a CSV file
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.