Syntax
Public Function FileExists(FileName As String) As Boolean
Description
This function is used to check if a given file exists or not.
Parameters
Key | Description |
FileName | Path and name of file to be checked if exist or not, value of type String |
Return value
Returns true if the file exists, otherwise, returns false.
Sample
sub main() if FileExists("VtlWorld.txt") then AlertMessage("File Already exist") else AlertMessage("File not found") End if End Sub
See Also