Say I had a file with the following values in it
100 200 300 400 500
Now I want to assign a to 100, b to 300 and c to 500. Am I correct in thinking that fscanf has to scan through each one like this?
fscanf(file,"%d %d %d %d %d",&a,&b,&c,&d,&e);
There has to be a better way of doing that,without having the needless variables!!!