各位GG,帮偶看看究竟问题在哪里(文件操作)
CString in,out,tagName;
CStdioFile fIn("C:\\Document\\tagElement.txt",CFile::modeRead);
CStdioFile fOut("C:\\Document\\tagCode.txt",CFile::modeWrite);
while(fIn.ReadString(in)){
int count=in.Find("0x");
if(count>-1){
tagName=in.Left(count);
out="case ";
strcat((char*)(LPCSTR)out,(LPCSTR)tagName);
strcat((char*)(LPCSTR)out," : str=\"");
strcat((char*)(LPCSTR)out,(LPCSTR)tagName);
strcat((char*)(LPCSTR)out," \";break;\n");
fOut.WriteString((char*)(LPCSTR)out);
}
}执行过程中说出现了debug error的窗口,但是文件操作完成了,请问问题在哪里?