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

Jeremy1026

macrumors 68020
Original poster
Nov 3, 2007
2,216
1,030
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?
 
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)...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.