The Scheme Programming Language, Third Edition [Electronic resources]

Jean-Pierre Hbert, R. Kent Dybvig

نسخه متنی -صفحه : 98/ 52
نمايش فراداده

7.4. Transcript Files

A transcript file is a record of an interactive session. It is also useful as a "quick-anddirty" alternative to opening an output file and using explicit output operations.

transcript-on and transcript-off appear in the Revised5 Report but not in the ANSI/IEEE standard.

(transcript-on filename)

procedure

returns: unspecified

filename must be a string.

transcript-on opens the file named by filename for output, and it copies to this file all input from the current input port and all output to the current output port. An error is signaled if the file cannot be opened for output.

(transcript-off)

procedure

returns: unspecified

transcript-off ends transcription and closes the transcript file.