in.good() returns true if none of the stream's error state flags (eofbit, failbit and badbit) is set.