Reads text data into a buffer, up to a limit of nMax–1 characters, from the file associated with the CStdioFile object.
virtual LPTSTR ReadString( LPTSTR lpsz, UINT nMax ); virtual BOOL ReadString( CString& rString );
Reading is stopped by the first newline character. If, in that case, fewer than nMax–1 characters have been read, a newline character is stored in the buffer. A null character ('\0') is appended in either case.
CFile::Read is also available for text-mode input, but it does not terminate on a carriage return–linefeed pair.
The CString version of this function removes the '\n' if present; the LPTSTR version does not.