新手vs2015
#include "stdafx.h"#include <stdio.h>
#include <iostream>
#include <afx.h>
using namespace std;
int main()
{
CStdioFile TFile;
TFile.Open(_T("cn_dtc_AH.txt"), CFile::modeRead);
CString strLine = " ";
CString strTalk = " ";
char ch;
while (TFile.ReadString(strLine))
{
cout << "strLine" << strLine << endl;
cin >> ch;
strTalk += strLine;
}
return 0;
}
输出的不是文件里面第一行的内容啊