RAD function: isfileexist

A RAD function that determines whether a file exists or not. If the file exists, this function returns true. Otherwise, this function returns false.

Function

isfileexist

Format

isfileexist(“filepath”)

Parameters

The filepath variable is the full file path.

Example

$L.filepath="c:\\note.txt"
L.ret=isfileexist($L.filepath)
if ($L.ret=false) then ($L.void=rtecall("msg", $L.code, "File doesn't exist")) 
else ($L.void=rtecall("msg", $L.code, "File exists"))