Syntax:
iostate stream::rdstate();
The rdstate() function returns the io_stream_state_flags of the current stream.
Related Topics: bad, clear, eof, fail, good