ファイルをバイナリ モードで開いたときに、あるのにあるという状況はis_open()
ありますか?true
good()
false
bool ok = false;
std::ifstream stream("test.dat", std::ios::binary)
if (stream.is_open())
{
ok = stream.good();//Does a situation exist where the result of this is false ?
stream.close();
}