Re: make a list
Re: make a list
- Subject: Re: make a list
- From: Andy Gerweck <email@hidden>
- Date: Fri, 5 Dec 2003 10:45:59 -0800
Perl is the best language choice for this kind of thing. It's
available on your Mac and documented (very intelligibly) at
http://www.perldoc.com/.
Otherwise, there's no need for Objective-C/Cocoa or C++: plain C can do
this very effectively once you learn about the evils of strings in C.
Pick up "The C Programming Language" by Kernighan and Ritchie or any of
the "C for Dummies" type books.
It's not clear how you want to use this data. Learning C will help you
with any programming and it's not too hard. Perl is great if you're
interested in easy and powerful text processing, is also not too hard.
C's an excellent choice for quick, portable code; Perl's a great swiss
army knife of a scripting language. I'd stay away from C++ or
Objective-C until you know C.
--Andy Gerweck
On Dec 5, 2003, at 9:24 AM, mmalcolm crawford wrote:
On Dec 5, 2003, at 8:56 AM, Sascha Kuehn wrote:
i need to make a list of lists from a tab and return delimited string
like : "data1 [tab] data2 [tab] data3 [return] data4 [tab] data5 [tab]
data6" [tab] and [return] are the delimiters!!
If the data is completely regular, use NSString's
componentsSeparatedByString. Otherwise scanners may be useful:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/
Concepts/Scanners.html>
mmalc
_______________________________________________
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.
_______________________________________________
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.