I'm forced to use plain C and i'm having problems with fscanf....
I'm simply reading in lines from a text file but the last line may
or may not have a \n and the following piece of code gives
an exception at the feof test line (i hate using while).
Any advice on this would be greatly appreciated.
Code:float fData[11]; while(!feof(m_pFile) { for(int i = 0; i< 12; i++) fscanf(m_pFile, "%f", &fData[i]); }




Reply With Quote