file opening
I did this to open a file and display its contents in a win32 console app
CString line;
CStdioFile fp;
fp.Open("employee.dat",CFile::modeRead);
while (fp.ReadString(line))
{
printf(line);
}
But i get an error message:
"debug assertion failed"
What is wrong?
I am a newbie and i got this code from a book
Please help me
|