1

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!

Dexter
  • 5,666
  • 6
  • 33
  • 45

2 Answers2

1

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++

Community
  • 1
  • 1
bbum
  • 162,346
  • 23
  • 271
  • 359
0

The following classes are your friends:

cfischer
  • 24,452
  • 37
  • 131
  • 214