Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
fscanf and file with headers
Posted:
Feb 27, 2013 7:33 PM
|
|
Hello forum I want to read a file which contain headers and block of data. Each block have 100 rows of numerical data and 2 headers with a numeric value for the headers.The structure of the data is the following:
DATA OUTPUT FOR JAN 28, 2013
EFF RADIUS(um) 0.150 --------------------- Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX) 12:04:40 11.93393 4.51143 18.03651 0.84142 12:04:50 5.90808 12.61199 8.92925 0.41656 12:05:00 11.32009 3.38943 17.10878 0.79814 ...
EFF RADIUS(um) 0.200 --------------------- Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX) 12:04:40 11.93393 4.51143 18.03651 0.84142 12:04:50 5.90808 12.61199 8.92925 0.41656
...
EFF RADIUS(um) 0.250 --------------------- Time Bsc(TMat) Bsc(PAX) Bab(TMat) Bab(PAX) 12:04:40 11.93393 4.51143 18.03651 0.84142 12:04:50 5.90808 12.61199 8.92925 0.41656 ...
and so on
How can I read the file using fscanf, or anyone have a better idea? Thanks for your help in advance.
|
|
|
|