ec26ca
06696c
707be8
d0fa1d
94103e
96103e
16e543
d4ee07
c01885
40c62a
这样一个A.txt文本;
ec26aaca 01
066aa96c rf
961aa03e 06
16e54aa3 07
d4eae07b 08
c018a85s 09
40c62a 10
ec2aa6ca 11
0857aa00 12
ec6aac9f 13
8c2aa10a 14
9c28ef 15
c88550 16
cc2aa48f 17
这样一个B.txt文本,
怎么在MFC中编程实现在B文件中找到A文件中的内容,然后输出到EDIT中,
有木有大神来点详解,或者模板什么的,看了好几天,实在是不知道该怎么做了。。。
CString buf1[256];
CStdioFile file;
CString str1;
file.Open("F:\a.txt",CFile::modeRead);
for(int i=0;file.ReadString(str1);i++)
{
buf1[i]==str1.Left(str1.Find('\r\n'));
CString buf2[256];
CStdioFile read;
CString str2,strTemp,str3;
read.Open("F:\\B.txt",CFile::modeRead);
for(int j=0;read.ReadString(str2);j++)
{
buf2[j]==str2.Left(str2.Find(' '));
if(buf2[j]==buf1[i])
{
str3.Format("%x\n",buf2[j]);
strTemp+=str3;
strTemp+="\r\n";
}
SetDlgItemText(IDC_EDIT1,strTemp);
}
}
自己写的程序,帮忙看下错哪里了?