|
|
function
|
Big5-output-file
|
|
Declaration define external output function Big5-output-file
value stream filename
exceptions-to value io-exception exceptions-to optional
Purpose
This external output function converts a stream of UTF-8 characters to a stream of Big Five characters.
Arguments:
- "filename". This is the name of the file containing UTF-8 characters. When a file name is not specified, this function uses standard output.
- "io-exception". This optional argument indicates that errors are to be recorded in the passed "io-exception" object, and that the OmniMark program is not to be immediately terminated.
Example:
set Big5-output-file "myfile.utf" to my-buffer exceptions-to e
do when get-exception-status e != 0
put #error "Error " || "16r8fzud" % get-exception-status e || "occurred. %n"
done
You should note two common errors.
- 0x0010: Connection Error. This error usually occurs when the output file cannot be found.
- 0x0020: Read Error. This error usually occurs when an illegal character is detected during writing.
Generated: April 21, 1999 at 2:01:02 pm
If you have any comments about this section of the documentation, send email to [email protected]
Copyright © OmniMark Technologies Corporation, 1988-1999.