swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
function  

output-file

 
 

Library: Character encodings, international (OMEFIO)
Include: omefio.xin

Declaration

define external string sink function output-file
                value string filename
  exceptions-to value io-exception exceptions-to optional


Purpose

This external string sink function accepts data and writes that data to the file named in the "filename" argument.

Arguments:

Example:

  ; Copying a file using "input-file" and "output-file". Note that both these
  ; functions behave the same way as the OmniMark file keyword unless they are passed
  ; an "io-exception" object, in which case they allow for I/O errors to occur
  ; without stopping the OmniMark program.
  
  set output-file "myoutput.txt" exceptions-to output-exceptions
   to input-file "myinput.txt" exceptions-to input-exceptions

    Related Topics
 
Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.