MFC写入文件时提示磁盘已满
代码如下CStdioFilefile;CFileExceptionfileEx;if(file.Open(cPath,CFile::typeBinary|CFile::m...
代码如下
CStdioFile file;
CFileException fileEx;
if(file.Open(cPath,CFile::typeBinary|CFile::modeCreate|CFile::modeNoTruncate),&fileEx)
{
file.WriteString(words);
file.Close();
}
else
{
TRACE("Can't open file %s,error=%u\n",cPath,fileEx.m_cause);
}
每次代码执行到这里的时候都会提示“在存取文件XXXX时磁盘已满”求教怎么回事啊…… 展开
CStdioFile file;
CFileException fileEx;
if(file.Open(cPath,CFile::typeBinary|CFile::modeCreate|CFile::modeNoTruncate),&fileEx)
{
file.WriteString(words);
file.Close();
}
else
{
TRACE("Can't open file %s,error=%u\n",cPath,fileEx.m_cause);
}
每次代码执行到这里的时候都会提示“在存取文件XXXX时磁盘已满”求教怎么回事啊…… 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询