I have a program, and im not going to go into detail, but i have a void say
void changingcode(string var1, string var2, string var3)
{
}
ok, so i have a bunch of code in a .txt file... and i want to insert it into that void, and i need it to use the variables that are passed to the void. potentially the code could be different every time the void is called. how can i do this?
ill strip it down incase i wasnt clear:
- i have a text file full of code
- i need to insert the code in the text file into a running program
- i need the inserted code to run and act as if it was simply included from the beginning.
- the location of the text file with code is included in var1.
note that i cannot have any code breaks or stop the code at any point. -thanks