Meaning of READ in Fortran

后端 未结 6 713
野趣味
野趣味 2020-12-09 05:02

What does READ() do in Fortran?

For example:

READ(1,82)
6条回答
  •  情书的邮戳
    2020-12-09 05:39

    It reads from "unit" (opened file) number 1, according to the FORMAT statement at label 82. However since the statement doesn't list any variables it has no place to put the data it's reading, which is unlikely to help; READ(1,82) FOOBAR would more usefully put the data it's reading in variable FOOBAR.

提交回复
热议问题