#COMPILE EXE "s63_file_exists.exe"
' Sample: Check if file exists using DIR$
FUNCTION PBMAIN() AS LONG
    DIM fname AS STRING
    fname = "sample_output.txt"
    PRINT "Checking for "; fname; ":";
    IF LEN(DIR$(fname)) > 0 THEN PRINT " FOUND" ELSE PRINT " NOT FOUND"
    FUNCTION = 0
END FUNCTION
