I am a novice in fortran programming.I want to read text files containing three columns of data ( one integer and 2 real. Each file contain data of different lengths.Could someone please help me by providing the code?.
Below is the data from one of the files to be read.
1 0.0000000E+00 0.2000000E+00
2 0.1500000E-01 0.2000000E+00
3 0.3000000E-01 0.2000000E+00
4 0.4500000E-01 0.2000000E+00
5 0.6000000E-01 0.2000000E+00
6 0.7500000E-01 0.2000000E+00
7 0.9000000E-01 0.2000000E+00
8 0.1050000E+00 0.2000000E+00
9 0.1200000E+00 0.2000000E+00
10 0.1350000E+00 0.2000000E+00
11 0.1500000E+00 0.2000000E+00
12 0.1650000E+00 0.2000000E+00
13 0.1800000E+00 0.2000000E+00
14 0.1950000E+00 0.2000000E+00
15 0.2100000E+00 0.2000000E+00
16 0.2250000E+00 0.2000000E+00
17 0.2400000E+00 0.2000000E+00
18 0.2550000E+00 0.2000000E+00
19 0.2700000E+00 0.2000000E+00
20 0.2850000E+00 0.2000000E+00
21 0.3000000E+00 0.2000000E+00
22 0.3150000E+00 0.2000000E+00
23 0.3300000E+00 0.2000000E+00
24 0.3450000E+00 0.2000000E+00
25 0.3600000E+00 0.2000000E+00
26 0.3750000E+00 0.2000000E+00
27 0.3900000E+00 0.2000000E+00
28 0.4050000E+00 0.2000000E+00
29 0.4200000E+00 0.2000000E+00
30 0.4350000E+00 0.2000000E+00
31 0.4500000E+00 0.2000000E+00
32 0.4650000E+00 0.2000000E+00
33 0.4800000E+00 0.2000000E+00
34 0.4950000E+00 0.2000000E+00
35 0.5100000E+00 0.2000000E+00
36 0.5250000E+00 0.2000000E+00
37 0.5400000E+00 0.2000000E+00
38 0.5550000E+00 0.2000000E+00
39 0.5700000E+00 0.2000000E+00
40 0.5850000E+00 0.2000000E+00
41 0.6000000E+00 0.2000000E+00
Regards
Andy.
Below is the data from one of the files to be read.
1 0.0000000E+00 0.2000000E+00
2 0.1500000E-01 0.2000000E+00
3 0.3000000E-01 0.2000000E+00
4 0.4500000E-01 0.2000000E+00
5 0.6000000E-01 0.2000000E+00
6 0.7500000E-01 0.2000000E+00
7 0.9000000E-01 0.2000000E+00
8 0.1050000E+00 0.2000000E+00
9 0.1200000E+00 0.2000000E+00
10 0.1350000E+00 0.2000000E+00
11 0.1500000E+00 0.2000000E+00
12 0.1650000E+00 0.2000000E+00
13 0.1800000E+00 0.2000000E+00
14 0.1950000E+00 0.2000000E+00
15 0.2100000E+00 0.2000000E+00
16 0.2250000E+00 0.2000000E+00
17 0.2400000E+00 0.2000000E+00
18 0.2550000E+00 0.2000000E+00
19 0.2700000E+00 0.2000000E+00
20 0.2850000E+00 0.2000000E+00
21 0.3000000E+00 0.2000000E+00
22 0.3150000E+00 0.2000000E+00
23 0.3300000E+00 0.2000000E+00
24 0.3450000E+00 0.2000000E+00
25 0.3600000E+00 0.2000000E+00
26 0.3750000E+00 0.2000000E+00
27 0.3900000E+00 0.2000000E+00
28 0.4050000E+00 0.2000000E+00
29 0.4200000E+00 0.2000000E+00
30 0.4350000E+00 0.2000000E+00
31 0.4500000E+00 0.2000000E+00
32 0.4650000E+00 0.2000000E+00
33 0.4800000E+00 0.2000000E+00
34 0.4950000E+00 0.2000000E+00
35 0.5100000E+00 0.2000000E+00
36 0.5250000E+00 0.2000000E+00
37 0.5400000E+00 0.2000000E+00
38 0.5550000E+00 0.2000000E+00
39 0.5700000E+00 0.2000000E+00
40 0.5850000E+00 0.2000000E+00
41 0.6000000E+00 0.2000000E+00
Regards
Andy.