Re: .true. help
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Fri, 30 May 2008 03:04:39 -0700 (PDT)
On 30 mei, 11:27, rudra <bnrj.ru...@xxxxxxxxx> wrote:
dear friends,
in a program, i have to check if a given file is created.
i tried with
if (file==.true.) write "file created"
where file is character variable(the file name will vary itself in the
program).....which obviously gives error.
can anyone suggest me how to do this?
What you are looking for is the INQUIRE statement:
It can find out a lot about a file, for instance:
- Does it exist?
- Is it already open and if so, to what LU number?
- etc.
Regards,
Arjen
.
- References:
- .true. help
- From: rudra
- .true. help
- Prev by Date: Re: Interfacing between Fortran and C - a little utility
- Next by Date: Re: .true. help
- Previous by thread: Re: .true. help
- Next by thread: Re: .true. help
- Index(es):