Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Futurebasic/Language/Reference/usr fileexists

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

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