1) :
Delphi-Quellcode:
{Speichern}
procedure TMainForm.ButtonSaveClick(Sender: TObject);
begin
if SaveDialog.Execute then
begin
Memo.Lines.SaveToFile(SaveDialog.FileName);
end;
end;
{Laden}
procedure TMainForm.ButtonOpenClick(Sender: TObject);
begin
if OpenDialog.Execute then
begin
Memo.Lines.LoadFromFile(OpenDialog.FileName);
end;
end;
Scrollbars : Schau dir doch mal die Property "Scrollbars" des Memos an.