Autor Beitrag
goog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37



BeitragVerfasst: Sa 28.08.04 16:35 
hi

jetzt ist mir doch glatt entfallen wie ich eine .dat Datei erstelle. Diese benötige ich ja beim Speichern mit
Assign(variable,'datei.dat');

wer kann mir weiterhelfen?
thanks for help
(P.S.:Wer andern eine Bratwurst brät, der braucht ein Bratwurstbratgerät) :wink:
goog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37



BeitragVerfasst: Sa 28.08.04 17:16 
sorry
ich hab was vergessen
natürlich: Assignfile(variable,'datei.dat'); :)
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Sa 28.08.04 17:26 
dafür hättest du auch die delphi-hilfe heranziehen könnnen :roll::

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
var 

  F: TextFile;
  S: string;
begin
  S:='Test';
  AssignFile(F, <dateiname>);
  WriteLn(f,s);
  CloseFile(F);
end;

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Sa 28.08.04 19:44 
Öffnen nicht vergessen, Assignfile ist nur die Zuweisung für die Variable. Danach muss noch kommen:
ausblenden Delphi-Quelltext
1:
Reset(F);					

Um die Dateineu zu erstellen, geht auch:
ausblenden Delphi-Quelltext
1:
Rewrite(F);					


Gruß,
Jörg