swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
operator  

file

 

 

Syntax

  For an output file:
  file (with open-modifier (& open-modifier)*)*

  For a source file:
  (binary-mode | text-mode)? (buffered | unbuffered)? file string-expression


Purpose

The operator file retrieves the contents of a named file.

Usually, OmniMark will read the file in its entirety and use the whole content in a single string expression. This can require large amounts of computer memory.

In certain limited cases, the file can be read in smaller chunks, allowing very large files to be processed without requiring huge amounts of computer memory. These cases occur whenever the file expression is used in the string expression of any of the following actions alone, or attached by join to other string expressions:

file can also be used as the entire string expression argument of one of the following actions:

    Related Syntax
   binary-mode
   || (concatenation)
   output
   put
   set
   do sgml-parse
   submit
   text-mode
   do scan
   repeat scan
   set stream
   set file
   set referent
   do xml-parse
   buffered, unbuffered
 
Related Concepts
   Buffering I/O
   File tests
   Files: binary-mode and text-mode
   Streams: attachments
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:13 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.