Command Reference : Function Reference : Function Reference: F
  
 
@fileexist
Check for existence of a file on disk.
Syntax: @fileexist(str)
str: string
Return: integer
Check for an file’s existence. str should contain the full path and file name of the file you want to check for. Returns a “1” if the file exists, and a “0” if it does not exist.
Examples
!exists = @fileexist("myfile.prg")
checks for the existence of MYFILE.PRG in the EViews working directory.
!exists = @fileexist("c:\users\william tell\myfile.prg")
checks for the existence of MYFILE.PRG in the specified directory.
Cross-references
See also @wdir and @folderexist