Autor Beitrag
Beutel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mi 11.10.06 14:57 
So hab mir mal das hier abgekupfert und klappt auch super er speichert die Daten Aber wie kann ich die jetzt wieder aus der Datei laden?

www.delphi-forum.de/...ine+Datei_64406.html

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
type TMyVerlauf = record
      Bild1 : array[0..1000] of Integer;
      Bild2 : array[0..1000] of Integer;
      Index : Integer;
      Points: Integer;
      Filename:string[50];
     end;

Var   Verlauf: TMyVerlauf;

procedure TClipix_form.Button2Click(Sender: TObject);
var spei: file of TMyVerlauf;
begin
if OpenDialog1.Execute then
  begin
  //wenn ok gedrückt wurde
    AssignFile(spei, SaveDialog1.FileName);
    read(spei, Verlauf);
    CloseFile(spei);
    end;
end;
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 11.10.06 15:10 
So, wie Du es da codiert hast?!
Auf den ersten Blick sehe ich kein Problem. Was funktioniert denn nicht?

EDIT:
Habs gerade gesehen
Ändere mal:
ausblenden Delphi-Quelltext
1:
    AssignFile(spei, SaveDialog1.FileName);					

in
ausblenden Delphi-Quelltext
1:
    AssignFile(spei, OpenDialog1.FileName);					
Beutel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mi 11.10.06 15:14 
okay habsch gemacht und wenn man dann die Datei auswählt kommt.

---------------------------
Game21
---------------------------
E/A-Fehler 103.
---------------------------
OK
---------------------------
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 11.10.06 15:18 
Bsss. Habe ein Brett vor dem Kopf gehabt. Vor dem Read muss noch ein Reset(spei) stehen.
Beutel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mi 11.10.06 15:27 
Danke Danke es klappt! juhu jetzt kann ich weiter machen damit!