swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax   Related Concepts  
operator   file...is writable    

Return type: Boolean
Returns:       

True if the file exists and is writable, false otherwise. Replacing is with isnt will reverse the results.



Syntax
  file string-expression (is | isnt) writable


Purpose

This operator succeeds if the file named by the string expression exists and is writable by the OmniMark program, or if it does not exist but can be created.

For example, the following code uses the file...is writable test to make sure that the file is writable:

  find-start
    do when file "myfile.out" is writable
      open out as file "myfile.out"
    else
      put #error "Cannot write to file 'myfile.out'.%n"
      halt with 1
    done

    Related Syntax
   file
 
Related Concepts
   Security considerations
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:14 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.