file ... is readable


Return type:
True if the file is readable, false otherwise.
file string-expression (is | isnt) readable


The file ... is readable test is used to determine if the system path named by the string expression exists and is readable by the OmniMark program. This is useful to avoid a program error when reading a file. Using isnt instead of is will reverse the results.

For example, the following program shows how file ... is readable is used to avoid attempting to read a file that cannot be be read:

  find "\input{" [any \ "}"]+ => filename "}"
     assert file filename is readable message "File " || filename || " does not exist."
     submit file filename

Related Concepts