读文件问题!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);
}
请问以上那里错了,程序总是说对一未命名的文件存取被拒绝!是什么原因呢?
{
// 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);
}
请问以上那里错了,程序总是说对一未命名的文件存取被拒绝!是什么原因呢?
看看这个贴子``有人遇到过和你相同的问题
http://topic.csdn.net/t/20050602/21/4055271.html#