Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

detz

macrumors 65816
Original poster
Jun 29, 2007
1,051
0
So I have txt files that are saved on the filesystem and I'm able to read/write these fine but the problem is the simulator changes paths every time it's run. Is there a way to force it to use the same path so I don't have to copy these files to the new location every time?
 
Drag the files into the Resources group in your Xcode project. Then you can access them via [[NSBundle mainBundle] pathForResource:mad:"somefile" ofType:mad:"txt"]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.