TCHAR AppRunPath[MAX_PATH];
TCHAR LISTFILE[MAX_PATH];
_wgetdcwd(_getdrive(),AppRunPath,_MAX_PATH);
swprintf(LISTFILE,MAX_PATH,L"%s\\%s",AppRunPath, _T("a.csv"));
TCHAR str[20];
CFile file;
if( !file.Open(LISTFILE,CFile::modeReadWrite ) ) {
if( file.Open(LISTFILE,CFile::modeCreate | CFile::modeWrite) )
memset(str,0x20,40);
wcscpy(str, _T("我们"));
file.Write(str,40);
}
file.Close();