CStdioFile file; CString strLine,strtemp; if(!file.Open( "d:\\test.txt ",CFile::modeRead))return;//打开*.TXT这个文件,打开形式为读取 int row = 0; //定义行变量 while(file.ReadString(strLine))