0

Possible Duplicate:
Writing into a file objective c

in my application i've a xml file and a sql file in the bundle of the app, i drop them in Resource folder.

I want to edit the in my app, i need to put them on Documentens folder on first startup?

Thanks.

Community
  • 1
  • 1
minch
  • 1
  • What is your target: iOS or Mac OS? Is it an application to be sold at the App Store? –  Apr 23 '11 at 07:03

1 Answers1

1

Yes. You can't modify anything in the app bundle -- you must first copy it to a writeable directory, usually the app's Documents folder.

Caleb
  • 124,013
  • 19
  • 183
  • 272
  • Technically, it is possible. Applications that are not targeted to the App Store shouldn’t be subject to this limitation. –  Apr 23 '11 at 07:02