September 10th, 2003, 02:09 PM
VC++ 5.0 Simple
Okay, I would like be able to display the contents of a text file from my VC++ exe file.
I have created an edit box, which is where I would like the text for a file to be displayed.
Thanks for you help.
September 10th, 2003, 02:14 PM
please can you give me the idea how to display the contents of a text from file
September 10th, 2003, 03:00 PM
Here is some code that I just made. Okay this code take the text file, opens it up and stores it in m_EditBox. Now I want to take that string(I think it is a string) and display it in the form.
file1.Open("C:\\list13.2.txt",CFile::modeCreate + CFile::modeNoTruncate);
while (uBytesRead = file1.Read(cBuf, sizeof(cBuf)-1))
cBuf[uBytesRead] = NULL;
m_EditBox += CString(cBuf);
//The entire file is contained here -> m_EditBox
September 10th, 2003, 03:02 PM
Okay, Maybe I should give a small disclaimer about myself:
I just started learning this on Monday. I do know C++ quite well, but not VC++.