chickadee » input-parse » read-string

read-string N #!optional PORTprocedure

Reads N characters from the PORT, and returns them in a string. If EOF is encountered before N characters are read, a shorter string will be returned. If N is not positive, an empty string will be returned. The optional argument PORT defaults to the current input port.

Note: In this implementation, this function is part of the extras unit.