I have a text file with the following:
int A = 5 ;
string str = "tempstring" ;
str DosomeMethod 15 16 20 22 ;
When reading the text file thru my program, I want to declare int A = 5
& string str = "tempstring"
at runtime.
It can be like
string[] st = freader.readline().split(' ');
if (st[0]=="int")
{
str[0] str[1] = str[4];
}
I know that the above is the wrong syntax but I want to do something like this with some reference.
Can anybody help without using irony .net?