- #1
Sirluke
- 3
- 0
Hi Guys
I need some help with reading a row of real numbers on a text file using fortran. On my text file the row is:
74.05 112.91 154.03 193.90 236 276.71 61.12.
I would like to point out that these numbers are chemical parameters that can vary but they usually have up to two digits in the decimal part and three in the unit part. So if I write:
open(1,'file.txt)
.
read(1,100) vector
100 format (7(f6.2))
then i get very wrong results in reading the data, how can i fix this? Thank you very much
I need some help with reading a row of real numbers on a text file using fortran. On my text file the row is:
74.05 112.91 154.03 193.90 236 276.71 61.12.
I would like to point out that these numbers are chemical parameters that can vary but they usually have up to two digits in the decimal part and three in the unit part. So if I write:
open(1,'file.txt)
.
read(1,100) vector
100 format (7(f6.2))
then i get very wrong results in reading the data, how can i fix this? Thank you very much