Originally Posted by
anduril462
Perhaps you could post the simplest version of your code that demonstrates the problem?
It's incorrect, I know. But I'm a beginner and I'm just trying to work it out.
Code:
while (fgets(rString, 100, fp))
{
sscanf(rString, "%s %d %d %d", iD, &R1, &R2, &RB);
printf("%s %d %d %d", iD, R1, R2, RB);
}
The main problem I'm getting now is, it's scanning the whitespace and returning odd values, and it's scanning the first set of strings. How can I get it to skip it? Thanks