W.E.T.
04-29-2004, 11:32 AM
Hi,
I was just wondering if anyone knows what is wrong with my following statement. I am trying to see if a file exsists in the current directory:
The declaration of the variables are as follows:
character*20 file
character seq*1, fmt*1
logical ex, opnd
...now here is my source for inquiring:
inquire (file=file,exsist=ex,opened=opnd,
>sequential=seq,formatted=fmt)
if (ex.and..not..opnd) then
if (seq.eq.'y'.and.fmt.eq.'y') then
open (11,file=file,form='formatted',status='old')
endif
endif
... when I compile this, I recieve the following:
Missing or invalid keyword
Thanks
Nick
I was just wondering if anyone knows what is wrong with my following statement. I am trying to see if a file exsists in the current directory:
The declaration of the variables are as follows:
character*20 file
character seq*1, fmt*1
logical ex, opnd
...now here is my source for inquiring:
inquire (file=file,exsist=ex,opened=opnd,
>sequential=seq,formatted=fmt)
if (ex.and..not..opnd) then
if (seq.eq.'y'.and.fmt.eq.'y') then
open (11,file=file,form='formatted',status='old')
endif
endif
... when I compile this, I recieve the following:
Missing or invalid keyword
Thanks
Nick