Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 13.07.05 20:43 
Hi
Ich hab ein undynamisches, zweidimesionales Array of TColor. :D
Wie kann ich dieses am besten in eine Datei speichern und laden?
Oder sollte ich am besten alles mit ColorToString umwandeln?
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 13.07.05 21:00 
Hallo,
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
type TFarbarray=array[0..17,0..2] of TColor;
var Farbarray:TFarbarray;
    Datei:file of TFarbarray;
begin
 AssignFile(Datei,'Z:\Test.txt');
 Rewrite(Datei);
 Write(Datei,Farbarray);
 CloseFile(Datei);
end;
Laden dann analog dazu (statt Rewrite Reset und statt Write Read ;)).

Gruß,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 13.07.05 21:22 
Doch so einfach. :shock:
Und ich brech mir da erst einen ab mit nem 30 Zeilen Code. :autsch:
Dankee! :D :D