ec26ca
06696c
707be8
d0fa1d
94103e
96103e
16e543
d4ee07
这样一个txt文件,在MFC怎么把它的内容按行读取到一个数组呢??
char 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('\n'));
}
file.Close();
这样写正确吗??