Du könntest auch die gesamte Komponente abspeichern:
Speichern:
Delphi-Quellcode:
FileStream:= TFileStream.Create(extractfilepath(Application.ExeName)+'data.txt', fmCreate);
try
FileStream.WriteComponent(Stringgrid1);
finally
FileStream.Free;
end;
Laden:
Delphi-Quellcode:
FileStream:= TFileStream.Create(extractfilepath(Application.ExeName)+'data.txt', fmopenread);
try
FileStream.WriteComponent(Stringgrid1);
finally
FileStream.Free;
end;
MFG Lars Wiltfang