std::ifstream::clear()じゃないよな?