views:

185

answers:

2

I am trying to save a .txt file to the documents directory in order to read and write to it. Is the documents directory the same as resource? If so, what is working code that will let me read and write a NSString to that .txt file? I want to actually know where in xcode, either resources or wherever, that i can create that .txt file.

A: 

this didnt really answer the question. i also need to know if the documents folder contents come from the files in the resources folder in xcode. im trying to access a .sql file in my resources folder when i test my app on my iPod but it is not working when i use NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); .

rarid1224