(open-input-file
filename)
(open-output-file
filename)
(close-input-port
input-port)
(close-output-port
output-port)
(read
input-port)
(read-char
input-port)
(peek-char
input-port)
(display
value
output-port)
value on the specified
port.
(write
value
output-port)
(write-char
ch
output-port)
(newline
output-port)
(input-port?
val)
val is an open input port.
(output-port?
val)
val is an open output port.
(file-exists?
filename)
(eof-object?
val)
val is something returned by
read (or read-char or
peek-char) to indicate the end of input.
(delete-file
filename)
Copyright © 2007-2011 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a
Creative Commons Attribution-NonCommercial 2.5 License
.