CStdioFile FileRead;
if (!(FileRead.Open(_T("test.txt"), CFile::modeRead | CFile::typeText)))
{
MessageBox(_T("Open Fail!"));
}
vector<CString>vecReadText;
CString cstrValue;
while (FileRead.ReadString(cstrValue))
{
vecReadText.push_back(cstrValue);
}
FileRead.Close();