#include "stdafx.h"
#include "afx.h"
#include "ioStream.h"
int main(int argc, char* argv[])
{
Dword returnValue;
if( SetCurrentDirectory("D:CodePOS") == TRUE)
{
CFileFind finder;
BOOL bWorking = finder.FindFile("*.*");
while (bWorking)
{
bWorking = finder.FindNextFile();
//cout << (LPCTSTR) finder.GetFilePath();
cout << (LPCTSTR) finder.GetFileName() << endl;
}
}
else
{
returnValue = GetLastError();
};
return 0;
}