exists()

Read(2778) Label: exist, file object,

Here’s how to use exists() function.

f .exists()

Description:

Check if a file exists.

Syntax:

f.exists()

Note:

The function checks if file f exists; return true if it exists, and false if it doesn’t exist.

Parameter:

f

A file

Return value:

  Boolean

Example:

 

A

 

1

=file("D://p1.dfx").exists()

Return true if the file exists.

Related function:

f. date()

f. size()

movefile()