Re: .true. help
- From: Alois Steindl <Alois.Steindl@xxxxxxxxxxxx>
- Date: Fri, 30 May 2008 11:47:32 +0200
rudra <bnrj.rudra@xxxxxxxxx> writes:
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?
Hello,
apart from the semantic error (you are comparing a character variable
with a logical constant, how could you arrive at this idea?), what do
you mean by "a given file is created"?
If you open a file for writing, usually an empty file is created, if
that is possible. The IOSTAT value of the open statement tells you,
whether it was successful.
Or do you regard the file as created, when all data are written to it
and it is closed?
Given the level of your question, I think it is absolutely necessary
that you get some good book on programming in Fortran. Do you know any
other programming language?
Alois
.
- Follow-Ups:
- Re: .true. help
- From: e p chandler
- Re: .true. help
- From: rudra
- Re: .true. help
- References:
- .true. help
- From: rudra
- .true. help
- Prev by Date: Re: Interfacing between Fortran and C - a little utility
- Next by Date: Re: Interfacing between Fortran and C - a little utility
- Previous by thread: .true. help
- Next by thread: Re: .true. help
- Index(es):
Relevant Pages
|
|