I have got a power-analyzer which is connected to a computer and it makes a text file with all of the measured variables which can be from 1-10+. Sample time is stored in the beginning of a line in the file and then comes each variable in a row with tab (\t) in between. Here is a example;
10:0:0 2,307763e+02 0,0e+00 5,000508e+01 0,0e+00
19:58:16 2,304e+02 1,102e+00 5,0019e+01 1,1350e+03
My problem is, it is easy to make the hole line to a string, but I have had difficulties to part the string up. I have tried scanf function and it doesn’t work (I think). Could you point out a solution to my problem???