I am a newbie to C (and anything resembling complex programming), so please excuse my dumbness. Is it possible to read a line from a file using fscanf, and then the next time I call fscanf (without closing the file), read the second line? Ie, if my input file is something like
200 300 50
10 12 1
I have been doing fscanf(fp_input,"%f %f %f", Re1, Re2, Re3);
then doing some processing and checking of the data, and then;
fscanf(fp_input, "%f %f %f", m1, m2, m3);
But seem to be getting some stange results. Any help greatly appreciated...