Checks to see if the stream is at the end of its contents.
It is a bit faster to supply a value to the on-end-of-stream: key for read or write than to use this function in a loop.
open