so, im trying to make a simple funtion to see if there is a file in a folder. been looking everywhere but havent found one that worked out. annnnnnnnnnnnnd code snippet:
`
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
hFind = FindFirstFile(_T"C:\\Dev-Cpp\\notes", &FindFileData);
if (hFind == INVALID_HANDLE_VALUE)
{
cout << "No File found\n";
}
else
{
cout << "Guess I found a File\n";
}
well, the function comes up with no errors but if the file is empty it says that it found a file. can someone tell me what am i not seeing?