The following functions can be used to determine various properties of a stream.
stream-open?Open generic function
stream-open? stream => open?
#f if the stream has been closed, and #t otherwise. Note that an input stream which is at its end, but has not been closed, is still open and stream-open? will return #t.
Open generic function
stream-element-type stream => element-type
<type>.
Open generic function
stream-at-end? stream => boolean
#t if the stream is at its end and #f if it is not. For input streams, it returns #t if a call to read-element with no supplied keyword arguments would signal an <end-of-stream-error>. For output streams, this function always returns #f.
stream-position to stream-size.