Re: .true. help
- From: rudra <bnrj.rudra@xxxxxxxxx>
- Date: Fri, 30 May 2008 03:47:22 -0700 (PDT)
On May 30, 6:07 am, rudra <bnrj.ru...@xxxxxxxxx> wrote:
On May 30, 5:47 am, Alois Steindl <Alois.Stei...@xxxxxxxxxxxx> wrote:
rudra <bnrj.ru...@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
the compairison is not possible...as i told, obviously an error. i
want to check if the file is created after some data is written to the
file and closed. guess i can do this by storing iostat....thnx anyway
thnx AM....i tried both INQUIRE and with iostat and both are working
.
- References:
- .true. help
- From: rudra
- Re: .true. help
- From: Alois Steindl
- Re: .true. help
- From: rudra
- .true. help
- Prev by Date: Re: one-liner for characater replacement
- Next by Date: Re: one-liner for characater replacement
- Previous by thread: Re: .true. help
- Next by thread: Re: .true. help
- Index(es):
Relevant Pages
|
|