Alright so lets say we have a structure:
Expand|Select|Wrap|Line Numbers
- typedef struct
- {
- char Item[5];
- char Descript[7];
- } INFO;
Expand|Select|Wrap|Line Numbers
- strcpy(INFO.Item,"A01");
- strcpy(INFO.Descript,"DA01");
To show what i mean..(assume the file named DA01.txt exists)
Expand|Select|Wrap|Line Numbers
- fopen( "[string within INFO.Descript].txt" , "r"); //psuedo code