Arbortext Command Language > Using the Arbortext Command Language > Example: Determine a File's Write Status
  
Example: Determine a File's Write Status
The following if command, which would presumably be embedded in a procedure that defined the variable $file, uses the access built-in function to determine the write status of a file:
if ( access($file, "w" ) ) {
message "can't write file $file"
}