chickadee » srfi-152 » read-string

read-string k #!optional portprocedure

Reads the next k characters, or as many as are available before the end of file, from the textual input port port into a newly allocated string in left-to-right order and returns the string. If no characters are available before the end of file, an end-of-file object is returned. The default port is the value of (current-input-port).