chickadee » chicken » io » read-list

read-list #!optional PORT READER MAXprocedure

Call READER up to MAX times and collect its output in a list. If MAX is #f, read until end of file.

The reader is called with one argument: PORT.

READER defaults to read, MAX to #f and PORT to current-input-port, so if you call it with no arguments, it will read all remaining s-expressions from the current input port.