本来不想插手的, 但.., 我改变初衷了.
procedure TForm1.FindClick(Sender: TObject);
var
i : Integer;
str1,str2,pathstr : String;
List : TStringList;
begin
str1 := ???;
str2 := ???;
pathstr := ???;
List := TStringList.Create;
List.LoadFromFile( Path );
for Counter := 0 to List.Count - 1 do
list := stringreplace(List,findstring,s,[rfReplaceAll]);
List.SaveToFile( Pathstr );
List.free;
end;