fileIsReadable()
Tests whether a file is readable. This method checks that the file exists and that the engine has the privileges to open the file for reading.
Syntax
Boolean fileIsReadable(String path)
- path is the path to the file to check.
Usage
Returns TRUE
if the file exists and is readable. Returns
FALSE
if the file does not exist, read access is denied because
the engine has insufficient privileges, or access cannot be determined.
Note:
The result of this method is immediately outdated. There is no guarantee that a subsequent attempt to open the file for reading will succeed, or even that it will access the same file.