bool SearchFile(wstring strFolder_in, vector<wstring>& vStrFileName_out)
{
vStrFileName_out.clear();
//
strFolder_in += L"\\*.csv";// *.csv present filter csv file but all file type use *.*
int i = 0;
CFileFind ff;
BOOL ret = ff.FindFile(strFolder_in.c_str());
if (!ret)// present no special file type
{
return false;
}
wstring strFilePath = L"";
while (ret)
{
ret = ff.FindNextFile();
strFilePath = ff.GetFileName();
vStrFileName_out.push_back(strFilePath);
}
ff.Close();
//
return true;
}