101 cout <<
"can't read from " << fname <<
endl;
104 CHECK_MSG(
"can't open file for reading", 0);
112 for (
size_t idx = 0; idx < mystring.size(); ++idx)
115 if (mystr.read(&ch, 1) && ch == mystring[idx])
121 <<
"read failed for " << (
unsigned long)mystring[idx]
122 <<
", got " << (
unsigned long)ch <<
endl;
129 if (mystr.read(&ch, 1))
ios_base &__CLRCALL_OR_CDECL hex(ios_base &_Iosbase)
Definition: ios:233
#define CHECK_MSG(msg, ok)
Definition: xtest:29
basic_istream< MYWCHAR > Myistream
Definition: xtest:51
static const _Openmode binary
Definition: xiosbase:104
basic_ostream< _Elem, _Traits > &__CLRCALL_OR_CDECL endl(basic_ostream< _Elem, _Traits > &_Ostr)
Definition: ostream:997
#define CHECK_INT(x, y)
Definition: xtest:28
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
#define CHECK(x)
Definition: xtest:27
__PURE_APPDOMAIN_GLOBAL _CRTDATA2 ostream cout
bool is_open() const
Definition: fstream:257
#define MYWCHAR
Definition: xtest:43
static const _Openmode in
Definition: xiosbase:97