读文件问题!void CDlgtestDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CFile file;
char buff[256];
file.Open("c:\\text.txt",CFile::modeRead|CFile::modeWrite);
file.Read(buff,sizeof(buff));
m_strText = buff;
file.Close();UpdateData(FALSE);
}
请问以上那里错了,程序总是说对一未命名的文件存取被拒绝!是什么原因呢?