views:

35

answers:

2

Hello everyone.

I am trying to parse out an apache-like config file using Objective-c. Where is the best place to start? I haven't done a lot of file read/write on this platform.

Thanks!

+1  A: 

You could use NSString and NSScanner, but I generally find it easier just to use C APIs directly for pure ASCII files.

Things like:

http://www.mrx.net/c/readfunctions.html

http://bytes.com/topic/c/insights/657086-how-parse-file-c

And, on stack overflow:

http://stackoverflow.com/questions/1417765/parse-config-file-in-c-c

bbum
A: 

The following classes are your friends:

Fernando