CFile fileEditText;
if(fileEditText.Open("c:\\My Documents\\jiminsurance.txt", CFile::modeRead));
{
char cBuf[512];
UINT uBytesRead;
while(uBytesRead =
fileEditText.Read(cBuf,sizeof(cBuf)-1))
{
cBuf[uBytesRead] = NULL;
m_EditBox += CString(cBuf);
}
fileEditText.Close();
UpdateData(FALSE);
}
The above code works for reading a whole file into an EDIT BOX,
Could someone give me a hint on how to read just the first 15 bytes the file
Thank you …… Jim
if(fileEditText.Open("c:\\My Documents\\jiminsurance.txt", CFile::modeRead));
{
char cBuf[512];
UINT uBytesRead;
while(uBytesRead =
fileEditText.Read(cBuf,sizeof(cBuf)-1))
{
cBuf[uBytesRead] = NULL;
m_EditBox += CString(cBuf);
}
fileEditText.Close();
UpdateData(FALSE);
}
The above code works for reading a whole file into an EDIT BOX,
Could someone give me a hint on how to read just the first 15 bytes the file
Thank you …… Jim