Fortran · Runtime error

Error 10: Cannot overwrite existing file

What does Error 10: Cannot overwrite existing file mean in Fortran?

An OPEN statement specified STATUS='NEW' for a file that already exists.

Error 10: Cannot overwrite existing fileIntel Fortran · gfortran

Condition

An OPEN statement specified STATUS='NEW' for a file that already exists.

Fix

Use STATUS='REPLACE' if overwriting is actually intended, or STATUS='UNKNOWN' if the program should work whether or not the file already exists.

Pending source verification. Not yet checked against official documentation.

Related runtime error