Re: .true. help
- From: e p chandler <epc8@xxxxxxxx>
- Date: Fri, 30 May 2008 08:00:58 -0700 (PDT)
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"?
[snip]
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?
Probably C - where all subprograms are functions. Also where testing
the result of fopen() is common.
IMO "What's wrong with this <code calling a subroutine as a function>?
has become a FAQ.
- e
.
- References:
- .true. help
- From: rudra
- Re: .true. help
- From: Alois Steindl
- .true. help
- Prev by Date: Re: Arrays Intersection
- 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
|
|