// JP opened flex table

Click to See Complete Forum and Search --> : [RESOLVED] Reading the contents of the file and displaying in the rich edit box


Suresh.hc
February 19th, 2007, 04:17 AM
Hello all,

I have to open the text file and display the contests in the rich edit control for that I have used below code.




const N = 1000;
char cont[N] = { '\0'};

ifstream fin;
fin.open(FName);

while(fin)
{

fin.getline(cont,1000);
::SendMessage(hwndRichEdit,WM_SETTEXT, 0,(WPARAM)cont);
}



fin.close();

}

golanshahar
February 19th, 2007, 05:31 AM
So what is the question? :confused:

Cheers

Suresh.hc
February 19th, 2007, 05:37 AM
Golanshahar

Thanks for the response.

Well that code is not giving any out put. File contents are not displayed in the rich edit box.

How to read the complete file contents and display it in a rich edit box.?

Suresh.hc
February 19th, 2007, 06:54 AM
Thanks guys got the solution..........

//JP added flex table