I would like to know what is the different between this statement:
open(unit=11,file="something.TXT",status="unknown")
, which is Fortran's default status
(i.e., the previous statement is the same as open(unit=11,file="something.TXT"
)
and this statement:
open(unit=11,file="something.TXT",status="replace")
I have the impression that the unknown
status behave exactly as I would expect with replace
: if the file doesn't exist, it creates it. If it does exist, then it replaces it.
status
when opening a file? – Remorse