Functional Problem Solving (CSC 151 2014F) : Reference
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
(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
)