You have 2 options:

NSScanner or
CFStringTokenizerRef

I prefer the NSScanner for regular parsing, but if you want to parse for words, then you should opt for the Tokenizer...


Filip van der Meeren




On 19 Jun 2009, at 16:58, Michael A. Crawford wrote:

My NS class vocabulary is a little shallow when it comes to text processing. I'm sure that there are classes in Foundation that can be used to put together a text processing application in short order, I just don't know what they are. I'm looking through the docs now, but I'm kind of in a hurry and would prefer to minimize the trial-error duration of my current endeavor.

So, which class or combination of classes do you recommend for read in ASCII text from a file and them parsing it out based on a given structure?

-Michael



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/filip%40code2develop.com

This email sent to fi...@code2develop.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to