Nine lines of code that confuse me.
FEXISTS should return a logical value. When I compile this the error message is:-
error 250 - You cannot assign an expression of type REAL(KIND=1) to a variable of type LOGICAL(KIND=3)
There are no REALS in this code, and I'm very confused.
winapp
program test
implicit none
include <windows.ins>
integer (kind= 3) error_code
logical(kind = 3) waveform_exist
waveform_exist = FEXISTS@('kss.txt', error_code)
write(6,*) waveform_exist
end
Can anybody tell me what's happening? All I want to do it test that a file exists in the current directory.
Thanks
Ken