hi does anybody know much about CFile? i have a problem, i can get text in a dialog box like i want but at the very end i get a funny looking character and i am using CFile heres what the code lookes like
char szBuffer [5056];
CFileException fileException;
CString filename = "readme.txt";
CFile myFile;
if ( !myFile.Open( filename, CFile::modeReadWrite, &fileException ))
{
TRACE( "Can't open file %s, error = %u\n", filename, fileException.m_cause );
}
myFile.Read(szBuffer, sizeof(szBuffer));
m_sEdit1 = szBuffer;
myFile.Flush();
UpdateData(0);
and here is what the funny looking character looks like Ì*ù please help![]()
![]()
![]()
![]()
![]()




Reply With Quote