(Co-Admin)
Registriert seit: 7. Jun 2002
Ort: Owingen
5.865 Beiträge
Delphi 2010 Professional
|
18. Mär 2003, 07:33
Hallo smax,
in der OnCreate Methode des Formulars:
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var
tfData : TextFile;
zeile : string;
begin
AssignFile(tfData, 'C:\lokal\Data.txt');
Reset(tfData);
readln(tfData, zeile);
Edit1.Text := zeile;
readln(tfData, zeile);
Edit2.Text := zeile;
CloseFile(tfData);
end;
Albert Live long and prosper
MrSpock
|