Hi,
I need to read data from a file with a specific format. The program works fine up to the point where I want to read the specific data (open file, find row, etc.). Here is an example of how the data looks like:
...
1842:-3.45453139410687e-01,1.60844170520307e-01,-4.81282605408422e-02
1843:-3.35578544444257e-01,7.27210361860993e-02,-2.44364313569354e-02
1844:-3.33535918869363e-01,-1.41243420023581e-03,1.14044249262977e-03
1845:-3.39507325625196e-01,-6.45503538352583e-02,3.39581359009246e-02
...
So, each line starts with an integer (ranging from 0 to n) followed by a ":" and three real values in exponential form separated by commas. I don't really need the integer, only the real values are of interest to me.
What would be the correct READ statement for that?
Something like "READ(<filenumber>, ???)" variable1, variable2,...?
Many thanks in advance for your help!
I need to read data from a file with a specific format. The program works fine up to the point where I want to read the specific data (open file, find row, etc.). Here is an example of how the data looks like:
...
1842:-3.45453139410687e-01,1.60844170520307e-01,-4.81282605408422e-02
1843:-3.35578544444257e-01,7.27210361860993e-02,-2.44364313569354e-02
1844:-3.33535918869363e-01,-1.41243420023581e-03,1.14044249262977e-03
1845:-3.39507325625196e-01,-6.45503538352583e-02,3.39581359009246e-02
...
So, each line starts with an integer (ranging from 0 to n) followed by a ":" and three real values in exponential form separated by commas. I don't really need the integer, only the real values are of interest to me.
What would be the correct READ statement for that?
Something like "READ(<filenumber>, ???)" variable1, variable2,...?
Many thanks in advance for your help!