14 if (
file_ ==
nullptr) {
15 std::cout <<
"file " <<
name <<
" cannot be opened for reading" << std::endl;
28 n =
static_cast<char>(fgetc(
file_));
33 n =
static_cast<unsigned char>(fgetc(
file_));
73 n =
static_cast<bool>(fgetc(
file_));
80 char*
tmp =
new char[nchar + 1];
81 unsigned int nread = fread(
tmp, 1, nchar,
file_);
83 std::cout <<
"binary_ifstream error: read less then expected " << std::endl;
bool good() const
stream state checking
auto const good
min quality of good
binary_ifstream(const char *name)
binary_ifstream & operator>>(char &n)
void init(const char *name)