How to read data file in iPhone project? For example, let's say I have a static file called "level.dat", which is structured as follows: obstacles: 10 time: 100 obstacle1: 10,20 ...
I would like to read the contents of the file in NSString, then do the parsing. How to read the contents of a file in a line? Also, where should the level.dat file be in the project? Should it be in the "Resources" section or only in the main directory?
Thanks in advance!
iphone cocoa-touch
user21293
source share