while (fscanf(ifp, " %d %d kl. %d %s - %s %d - %d %d\n", &round, &date, &clock, teeam, &goals, &attendance)
I should probably know this, but the second %d should import a date to my variable, like 20.20.2012 but instead i only get the first 20 and not rest of it.
thank you 🙂
Internally, the string is read as long as it represents a valid integer (so it stops when ‘.’ is encountered).
How would you represent the date as one integer? You could have 3 variables and read them like this:
By the way, 20/20 is a strange date 🙂