fileExists

fileExists

Syntax

fileExists(path_to_file)

Package

file

Alias

 

Pkg Usage

exists(path_to_file)

Description

Returns 'true' if the file exists and 'false' otherwise.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

path_to_file

String

Yes

Specifies the file name you want to search for.

Return Type

Boolean (true/false)

Example

if(fileExists("C:/someFile.txt")){ print("The file exists!"); } else { print("The file does not exist!"); }

It is recommended that you use forward slashes ( / ) for file paths.

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.