Hi,

  > I'm writing a program to modify text files. What I do is load
  > the file in a RichEdit control (set to plain text only)

For plain text files TMemo is easier to use than TRichEdit.

Whichever, you can do on loading:

var
  text_as_loaded:string;

begin
  text_as_loaded:=RichEdit1.Lines.Text;


and before saving:

 if RichEdit1.Lines.Text = text_as_loaded then ... else ...

regards,

Martin.

Reply via email to