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();
}
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();
}