chickadee » srfi-135 » text-read-lines

text-read-lines #!optional port maxprocedure

Analogous to read-lines from (chicken io). Reads lines (as with text-read-line) from port and returns the result as a list. port defaults to the current input port. If max is supplied, then at most max lines are read; otherwise, reading continues until an EOF is encountered. If an EOF is encountered immediately, the empty list is returned.