//pFile 是你文件路径及名称CString str;CStdioFile f2(pFile,CFile::modeRead);while(f2.ReadString(str)){ //do sth with str ....}f2.Close();