you can parse the instructions out, then run them, as in a script language. the 
program would provide the runtime.
Thanks,
~~TheCreator~~
Visit TDS for quality software and website production
http://tysdomain.com
msn: [EMAIL PROTECTED]
skype: st8amnd127
  ----- Original Message ----- 
  From: Nilesh Chakraborty 
  To: [email protected] 
  Sent: Saturday, April 26, 2008 12:06 AM
  Subject: [c-prog] Can I execute the instructions in a txt file from a C 
program


  Hi,

  Suppose there is a text file containing this:

  int x = 10;
  printf("Value of x is %d\n",x);

  I need to write a C program which will open this .txt file and execute
  the C statements in it. Is this at all possible? If so, how? Or is
  there any alternative? Can I do the same by reading assembly
  instructions and execute them by using inline assembly?



   

[Non-text portions of this message have been removed]

Reply via email to