文法:
iostate stream::rdstate();
rdstate()関数は現在のストリームのio_stream_state_flagsを返します。
関連トピック: bad, clear, eof, fail, good