Re: .true. help



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
.