isEOF
The computation
isEOF is identical to
hIsEOF, except
that it works only on
stdin.
Determine whether we've reached the end of the file
An error indicating that an
IO operation failed because the end
of file has been reached.
I/O error where the operation failed because the end of file has been
reached.
For a readable handle
hdl,
hIsEOF hdl returns
True if no further input can be taken from
hdl or for
a physical file, if the current I/O position is equal to the length of
the file. Otherwise, it returns
False.
NOTE:
hIsEOF may block, because it has to attempt to read from
the stream to determine whether there is any more data to be read.
Whether or not we're at EOF. This may raise on exception on some
items, most notably write-only Handles such as stdout. In general,
this is most reliable on items opened for reading. vIsEOF
implementations must implicitly call vTestOpen.
Check if a handle has more content