/*
PlainText, LoadFromFile example
This example requires two TRichEdit controls placed on the form.
When the form becomes visible, the first Rich Edit control will display the rich text in its raw form, including formatting characters. The second will show the rich text in its intended format.
*/ 
void __fastcall TForm1::FormCreate(TObject *Sender)
{
// you may need to change this path to suit your environment
  char const *Path = "C:\\Program Files\\Borland\\CBuilder\\Examples\\APPS\\RICHEDIT\\OVERVIEW.RTF";
  RichEdit1->PlainText = true;
  RichEdit1->Lines->LoadFromFile(Path);
  RichEdit2->PlainText = false;
  RichEdit2->Lines->LoadFromFile(Path);
}
 
