Im trying to open files in a specific directory and analize them,
i get to the stage of listinf all the files in that directory but i can get to open them,
please if some one can tell how to open them because i get always an error.
Code:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
HANDLE hFind;
WIN32_FIND_DATA FindData;
// Find the first file
hFind = FindFirstFile("C:\\ibloga.blogspot.com\\*.*", &FindData);
//////need to open the file//////////////
cout << FindData.cFileName << endl;
// Look for more
while (FindNextFile(hFind, &FindData))
{
cout << FindData.cFileName << endl;
}
// Close the file handle
FindClose(hFind);
return 0;
}


