Solved Qt 5.8.0 when use feof to detect the end of a file , the qt app is crumbling
-
Qt 5.8.0 when use feof to detect the end of a file , the qt app is crumbling
-
Can you provide any more info? What is the error? Can you provide code sample?
In QFile, you don't need to check with feof.
-
qt app is running on ubuntu 16.04.
this has been sovled:
the error code:while (!feof(m_File)) { m_File = fread(....) ; }
the right code :
do { m_File = fread(....) ; } while (!feof(m_File));
-
OK, thanks for info.
So it was not connected with Qt at all.