Futurebasic/Language/Reference/usr fileexists
USR FILEEXISTS(fileName$, vRefNum%, dirID&)
Revised February, 2002 (Release 6)
Description - Your program may determine whether or not a file exists using this function. A non-zero value is returned when the file is present. You need to pass the fileName and the vRefNum% in all cases, but the dirID& can usuually be zero. To determine if a file named "My File" is present in the application folder you would use the following code. LONG IF USR FILEEXISTS("My File", SYSTEM(_aplVol), 0)
PRINT "File exists!"
END IF Note: You will not be able to use this function unless you include the proper header file as follows:
INCLUDE "Util_Files.incl"
See Also USR FSFILEEXISTS