enumerate all the files in the current directory

enumerate all the files in the current directory

   CFileFind finder;
   BOOL bWorking = finder.FindFile("*.*");
   while (bWorking)
   {
      bWorking = finder.FindNextFile();
      cout << (LPCTSTR) finder.GetFileName() << endl;
   }

你可能感兴趣的:(enumerate all the files in the current directory)