用CArchive类对文件进行读操作,运行时出现“试图超越其尾端对一未命名文件进行读写”的提示,请问是什么原因?要怎么解决?CFile fread;
if (!fread.Open("rec\\zz.txt",CFile::modeRead))
{
MessageBox("文件未打开");
exit(0);
}
CArchive ar(&fread,CArchive::load );
CString strtemp;
ar>>strtemp;
MessageBox(strtemp);