I am downloading content from a web source using URLDownloadToFile winapi function
All is well, with that, the content is downloaded to the correct path.
My probems start when I try to read it, like below, the loop never exits.
myReadFile.open(sFile);
if (myReadFile.is_open())
{
while (!myReadFile.eof())
{
//code;
}
}
cout << "done" << endl; // is never displayed
It has been working before, the only thing which has changed is the content of the web source
and perhaps it's encoding.
Appreciate any advice on this matter.