I have a programing problem regarding fscanf.
I have a text file that looks like this:
the first item is always a string, and the other ones can vary - there can be even more values of different type. The problem is that I must read each one at a time - not all together with a while statement or the usual syntax of fscanf.
So I tryed:
fscanf(file_in, "%s", InFile);
fscanf(file_in, "%lf", JD);
It didn't work - it just read the first one. How can I do this using fscanf ?
Please anwer as soon as possible.