RosettaCodeData/Task/Special-variables/Fortran/special-variables.f

5 lines
254 B
FortranFixed
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
INQUIRE(FILE = FILENAME(1:L),EXIST = EXIST, !Here we go. Does the file exist?
1 ERR = 666,IOSTAT = IOSTAT) !Hopefully, named in good style, etc.
IF (EXIST) THEN !So, does the named file already exist?
...etc.