Heh, silly me
No, it doesn't work - it gives me 0, and I get a warning:
chargestate.c: In function ‘countTimeSteps’:
chargestate.c:15: warning: passing argument 1 of ‘sscanf’ from incompatible pointer type
Which I don't know how to intepret
EDIT: it is reading in the lines, because adding a puts(line) prints the output file just fine...