Check if the file exists

filep name
file? name

Returns true if the file with name exists, otherwise returns false.

If name does not contain an absolute path then the file is searched for in the current working directory as it is set in :pool_cfg,"current_dir.

The name can be also a http adress.

Example:

"k := {abc 123 x y z}
writedata :k "array1.txt
print file? "array1.txt

Output:

True

See also:

Table of Content