Hi Guys(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fortran Fortran 95 read statement

Tags:

Loading...

Similar Threads for Fortran read statement |
---|

Fortran Successive Over Relaxation Method in FORTRAN |

If statement for Monte Carlo integration |

C/++/# How to use C++ in studying calculus |

Fortran How to buy Fortran Programming Software Commersial License |

**Physics Forums | Science Articles, Homework Help, Discussion**