CheckFileExist
(System Library)
| Description: | This subroutine checks for the existence of the specified file. |
| Returns: | Boolean |
Usage: ![]() |
Script only. |
| Function Groups: | File I/O |
| Related to: | CheckPathExist | CopyDir |
Format: ![]() |
System.CheckFileExist(FileName) |
| Parameters: |
| FileName |
| Required. Any expression for the name of the file whose existence you wish to verify. |
| Comments: | This subroutine checks for the existence of the file specified by FileName. It returns 1 if the specified file exists, or 0 if the specified file does not exist. |
This function is session non-aware, meaning it works on the server's file system even with an active remote connection established. This function is also blocking, all concurrent thread operations will be paused until its execution has concluded.
Example:
If Watch(1);
[
{ check whether the file exists... }
IfThen(System.CheckFileExist(SomeFile),
...
