Next: , Previous: Block Reading and Writing, Up: Input and Output


27.9 Default Ports for Input, Output and Errors

— Scheme Procedure: current-input-port
— C Function: scm_current_input_port ()

Return the current input port. This is the default port used by many input procedures. Initially, current-input-port returns the port associated with stdin (in Unix and C terminology).

— Scheme Procedure: set-current-input-port port
— C Function: scm_set_current_input_port (port)

Set the current default input port to port.

— Scheme Procedure: current-output-port
— C Function: scm_current_output_port ()

Return the current output port. This is the default port used by many output procedures. Initially, current-output-port returns the port associated with stdout (in Unix and C terminology).

— Scheme Procedure: set-current-output-port port
— C Function: scm_set_current_output_port (port)

Set the current default output port to port.

— Scheme Procedure: current-error-port
— C Function: scm_current_error_port ()

Return the port to which errors and warnings should be sent (the stderr in Unix and C terminology).

— Scheme Procedure: set-current-error-port port
— C Function: scm_set_current_error_port (port)

Set the current default error port to port.