Can I do this with a text file?

Discussion in 'iOS Programming' started by Jeremy1026, Aug 18, 2008.

  1. Jeremy1026 macrumors 68020


    Nov 3, 2007
    I want to write code to a text file from within the app, then have the application read that text file (when called upon by the user) and execute the saved code. Is this possible, and if so, could someone lead me in the direction to accomplishing this?
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Dynamically loading and executing code of any sort is forbidden under the SDK. You cannot do this on an iPhone.

    In general the way to do this would be to use an interpreter (either one you write or one you get from somewhere else)...

Share This Page