[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.2.4 Extended port procedures

Function: open-input-file filename &keyword encoding conversion-buffer-size ...
Function: call-with-input-file filename proc &keyword encoding conversion-buffer-size ...
Function: with-input-from-file filename thunk &keyword encoding conversion-buffer-size ...
Function: open-output-file filename &keyword encoding conversion-buffer-size ...
Function: call-with-output-file filename proc &keyword encoding conversion-buffer-size ...
Function: with-output-to-file filename thunk &keyword encoding conversion-buffer-size ...
These Gauche built-in procedures are extended to accept two extra keyword arguments, encoding and conversion-buffer-size. (See section 6.18.3 File ports, for their default behavior).

You can give a CES of the file filename to encoding, and the port automatically converts the file CES to the Gauche's native CES. You can use a CES guessing algorithm name for input file port.

The keyword argument conversion-buffer-size has the same meaning as buffer-size of open-input-conversion-port.



This document was generated by Ken Dickey on November, 28 2002 using texi2html