Dynamically need this action

Discussion in 'iPhone/iPad Programming' started by arnieterm, Nov 21, 2008.

  1. macrumors regular

    Is it possible to dynamically create files with our own Iphone application directory like say creating a .txt file in my Iphone app directory?
    Do I have to use NSFileHandle for it or what another api from IPhone SDK is needed for this purpose?
    If we cannot create within our own app directory then at what location can this be done?
    Any idea? :-(
  2. Moderator


    Staff Member

    No, any alteration to the application bundle will cause it's signature to change and the iPhone will then refuse to run the app. This is the point of the codesigning...

    Edit: but each app does have a writeable area of filesystem space, outside the app bundle, that you can use as is described in the documentation.
  3. macrumors regular

    Thanks for the reply
    Please provide a sample code/hint that does a write to the writeable area that you are pointing to
  4. Moderator


    Staff Member

    It's in the documentation. I suggest you read it. It's covered in the iPhone Application Programming Guide. You should have read and understood this entire document before starting any iPhone application.
  5. Moderator


    Staff Member

    Ah, crap. I gotta understand it too!? ;)
  6. macrumors regular


Share This Page