I don't know where to input a certain file name into the function so that the function searches for the certain file. If you were trying to find a certain file on your computer, I think this would find it for you. I just don't know how to make it so that whatever you type in is searched for. For reference, here's the function.
1 2 3 4 5 6 7 8 9 10
WIN32_FIND_DATA file;
HANDLE search_handle=FindFirstFile("C:\\*",&file);
if (search_handle)
{
do
{
std::wcout << file.cFileName << std::endl;
}while(FindNextFile(search_handle,&file));
FindClose(search_handle);
}
PS: I already know how to put what you type into a file, but I don't know where to put that file into this fuction.