Quote:
Originally Posted by kamaralitarvez View Post
Hi,
i don't think u understood my question fully. the details i provided may be short and minimum because i thought it is self explaining.

My question is how to treat a string read from a file as a structure variable ie; in ur example code consider num, i will read from file as "foo.num" and this should correspond to exact "int num" variable of ur structure.

there is no problem in assigning values.

i send u the entire header file to show how the structures are nested and how complex a switch statement will be when treated as a solution to this since u suggested it in ur first reply.

thanx for ur advice but for ur kind notice i can judge myself better than anybody and i know what i am


Is there no other solution to this problem and thanx for ur continuous replies