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!
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!
The following classes are your friends:
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:
Parse config file in C/C++