![]()  | 
 
  
  | 
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]()  | 
    |||||
| 
 | 
||||||
| Related Topics | Other Library Functions | |||||
| function | 
input-file | 
| 
Library: Character encodings, international (OMEFIO)
 Include: omefio.xin  | 
define external string source function input-file
                value string filename
  exceptions-to value io-exception exceptions-to optional
This external string source function reads the file named in the "filename" argument and returns the text of that file.
Arguments:
input-file does not open a file, but reads from standard input.
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 Topics | 
Other Library Functions | 
Copyright © Stilo International plc, 1988-2010.