Giday.
I have been looking at some file (streaming) parsing routines which are not
quite what I want.
I figured a nice easy way would be to send the file to a richedit and search
line by line for the text I need. Because by sending the file to Wordpad,
the information I need is all there, and can easily be found. But it doesnt
quite work out that way with richedit. Is there some data which can stuff up
richedit streaming input? Any ideas?

This is what I did:

function TForm1.GetMailAdds(const FileName: string): string;
var tcount, poscount: integer;
begin
  RichEdit1.Lines.LoadFromFile(FileName);
  for tcount := 0 to RichEdit1.Lines.Count - 1 do
  begin
    poscount := Pos('FROM:', uppercase(RichEdit1.Lines.Strings[tcount]));
    if poscount <> 0 then beep; //gotcha
  end;
end;

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to