TCHAR ch[MAX_PATH];
memset(ch,0,MAX_PATH);
GetCurrentDirectory(MAX_PATH,ch);
CString path;
path=ch;
CStdioFile file;
CFileException ex;
path+=_T("\\data\\")+name+_T(".txt");
basedata.RemoveAll();
if (file.Open(path,CFile::modeRead))
{
CString s;
while (file.ReadString(s))
{
basedata.Add(s);
}
}