|
本帖最后由 pasuka 于 2018-1-7 15:04 编辑
少年,有open无close这样的陋习,早晚会栽跟头!
Python有with关键字,光open就行,可惜fortran没有open的说明文档
https://docs.oracle.com/cd/E1995 ... j4m0vnaf/index.html
If you open a unit that is already open without specifying a file name (or with the previous file name), FORTRAN thinks you are reopening the file to change parameters. The file position is not changed. The only parameters you are allowed to change are BLANK (NULL or ZERO) and FORM (FORMATTED or PRINT). To change any other parameters, you must close, then reopen the file. 怎么能说没有关系呢?
|
|