I've got an input file like this:
1 2 2 Medium
1 2 0 Medium
2 1 0 Medium
2 0 2 Medium
I am using fscanf() to read in the integer values and that is working fine. does anyone have any ideas how to read in the string and place it in a string variable???
int x,y,z;
char* cs;
fscanf(fp3,"%d",&x);
fscanf(fp3,"%d",&y);
fscanf(fp3,"%d",&z);
fscanf(fp3,"%s",&cs);