swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax     Other Library Functions  
function   input-file    

Library: omefio - UTF-8 file I/O
Include: omioe.xin, omefio.xin

Declaration

  define external source function input-file
                  value stream filename
    exceptions-to value io-exception exceptions-to optional


Purpose

This external source function reads the file named in the "filename" argument and returns the text of that file.

Arguments:

Example:

  ; Copying a file using "input-file" and "output-file". Note that both these
  ; functions behave the same 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 Syntax
   output-file
 
  Other Library Functions
   Big5-input-file
   Big5-output-file
   euc-input-file
   euc-output-file
   input-file
   jis-input-file
   jis-output-file
   output-file
   sjis-input-file
   sjis-output-file
   utf16-input-file
   utf16-output-file
 
----  

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

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

Copyright © OmniMark Technologies Corporation, 1988-2000.