Hi,
I would like to write an fscanf statement to read the first integer value at the start of the line.This is what i was using:
int c = 0;
int sr = fscanf(inFile, "%d", &c);
I was puzzled as to why this returned a value of 1 when the line contained:
8as 12
Your help will be appreciated.
I would like to write an fscanf statement to read the first integer value at the start of the line.This is what i was using:
int c = 0;
int sr = fscanf(inFile, "%d", &c);
I was puzzled as to why this returned a value of 1 when the line contained:
8as 12
Your help will be appreciated.