How to fix "open(unit=16,file='my.txt,dispose='delete')"?
Tim Prince
n8tm@aol.com
Sat Jul 27 12:39:00 GMT 2013
On 7/27/2013 6:28 AM, Peng Yu wrote:
> Hi,
>
> I try to fix "open(unit=16,file='my.txt',dispose='delete')", by
> replacing "dispose" with "status". But I then see the following error.
> Does anybody know how to fix it? Thanks.
>
> open(unit=16,file='my.txt',status='delete')
> 1
> Error: STATUS specifier in OPEN statement at (1) has invalid value 'delete'
>
> http://fortranwiki.org/fortran/show/modernizing+old+fortran
>
maybe status='scratch' ?
your original post made me think of SunOS f77. When you said your code
was f77, without specifying further, that gives the false impression
that it doesn't have non-standard legacy extensions.
--
Tim Prince
More information about the Fortran
mailing list