A little stupid problem with my c code.
In a part of my program I am trying to use fscanf to read from a file, that has a format as following
Quote:
14:37:37.825 |
0:00:00.020 |
14:37:37.845 |
0:00:00.020 |
14:37:37.865 |
0:00:00.020 |
14:37:37.885 |
0:00:00.020 |
14:37:37.905 |
0:00:00.020 |
.. |
.. |
I used the line
Quote:
while(fscanf(fp,"%2d %c %2d %c %5.3f %2d %c %2d %c %5.3f",&h1,&c1,&h2,&c2,&h3,&h4,&c3,&h5,&c4,&h6)!=E OF)
trying to accomplish the job, but it didn't work. I will be very thankful if someone could suggest me a way out.