Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

FileExist

  • Last UpdatedJul 18, 2023
  • 1 minute read

Checks if a file exists. If the return value is 1, the file exists.

This function is a blocking function. It blocks the calling Cicode task until the operation is complete.

Syntax

FileExist(sName)

Name:

The name of the file to check.

Return Value

TRUE (1) if the file exists, otherwise FALSE (0).

FileOpen

Example

! Check if the file exists
IF FileExist("C:\Data\Report.Txt") THEN
! The file exists
END

See Also

File Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in