How to fix "open(unit=16,file='my.txt,dispose='delete')"?

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Jul 27 14:43:00 GMT 2013


On Sat, Jul 27, 2013 at 05:28:21AM -0500, 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
> 

fortran@gcc.gnu.org is intended for the discussion of development
of gfortran.  It is not a general purpose user support forum.  For
general questions regarding Fortran (and how to write standard
conforming code), please use comp.lang.fortran newsgroup.

-- 
Steve



More information about the Fortran mailing list