The following is a small set of reading functions that search for particular elements in a stream. These functions behave as though they were implemented in terms of the more primitive functions described in Section 5.6.1.
read-toFunction
read-to input-stream element #key on-end-of-stream test => sequence-or-eof found?
#t if the read terminated with element, or #f if the read terminated by reaching the end of the stream's source. The stream is left positioned after element.
See also read-through, page 88.
Function
read-to-end input-stream => sequence
Function
skip-through input-stream element #key test => found?
#t if the element was found, or #f if the end of the stream was encountered. When skip-through does not find the element, it leaves input-stream positioned at the end of the stream.