Print

Print


James Giles wrote:
> 
> Bertrand Meltz <[log in to unmask]> wrote:
> ...
> 
> It is not illegal to open a file that doesn't exist.  That's
> how new files are created from within Fortran.  Have you
> tried STATUS='OLD'?  That should make the non-existence
> of the file an error.

That's a better answer than mine. Avoids having to add another
intrinsic and is closer in spirit to what you were trying to do,
which was to have open() take care of the situation. If you need to
know more about the file, though, do use inquire(). :-)

Alvaro


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%