FileExists

 

Check the existence of file.

 

int @FileExists(string filename);

 

Parameters

string filename : Name of file. It's better to write down the absolute path.

 

Return Value

if it returns 1, the file exists, and if it returns 0, the file does not exist.

 

Example

retn = @FileExists("c:\\Sample\\Test.txt");

if(retn == 1) {

   @Message("File exists."); 

}

else {

   @Message("File not exists."); 

}

 

Description : It checks whether the Test.txt file exists, and if the file exists, it shows the message "File extists." If it does not exist, it shows the message "File not extists."

 

Version Information

Supported Version: 10.3.0

 

Related Helps

@FileExists()