Re: Problem in Reading File.
you can judge the return of ReadString,
from MSDN:
Return Value
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.
Re: Problem in Reading File.
Quote:
Originally Posted by
buyong
you can judge the return of ReadString,
from MSDN:
Return Value
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.
if i do this ,function not read the full file and return when this symbol occur becoz here ReadFile return 0,but i want to read full file data.
Re: Problem in Reading File.
Did you open the file in binary mode?
Re: Problem in Reading File.
Thanks its done with using binarymode.
Re: Problem in Reading File.
CStdioFile in combination with ReadString, doesn't really like for the file to contain binary zeroes.
If you can't assure that the file will not contain binary zero's, Go with using the plain Read(), and do the line processing yourself.