Du kan også bruke dette, men jeg foretrekker å bruke Ini-filer:
Skrive til fil:
var
F: TextFile;
begin
AssignFile(F, ExtractFilePath(ParamStr(0)) + 'minfil.txt');
Rewrite(F);
Writeln(F, Edit1.Text);
CloseFile(F);
end;
Lese fra fil:
var
F: TextFile;
S: String;
begin
Edit1.Clear;
AssignFile(F, ExtractFilePath(ParamStr(0)) + 'minfil.txt');
Reset(F);
while not Eof(F) do
begin
Readln(F, S);
Edit1.Text := Edit1.Text + S;
end;
CloseFile(F);
-------------------------------------
I am AGAINST TCPA!!
[
http://www.againsttcpa.com/ ]
-------------------------------------
Mvh
DiZpel