A pointer to the buffer containing the text data. NULL if end-of-file was reached without reading any data; or if boolean, FALSE if end-of-file was reached without reading any data.
CStdioFile f; ... if (!f.ReadString(str)) MessageBox("End of File!");
...
if (!f.ReadString(str))
MessageBox("End of File!");