So I’ve been writing a program which scans through files that works just fine when compiled with gcc on Linux. But on Windows, with both Microsoft compiler and MinGW, feof() false-triggers. The loop should break once it detects the end statement of the filetype, the feof is only there as a failsafe and never triggers for correct files on Linux…
Does anyone have an Idea what I’m doing wrong?
while(1)
{
...
//File is read here
if(feof(in))
{
DEBUG_PRINTF("Reached EOF before IEND\n");
break;
}
}