Autor Beitrag
Jeppen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39



BeitragVerfasst: Do 20.10.05 16:08 
Hi,

wie kann man in delphi 6 eine datei bsp.(test.txt) erstellen?

Danke im voraus!!

Alles ein frage des Codes.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Do 20.10.05 16:10 
Du kannst die Fnktion eines Memos (SaveToFile) verwenden oder eifach CreateFile nehmen
Jeppen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39



BeitragVerfasst: Do 20.10.05 16:34 
hab ich versucht jedoch hab ich probleme mit der syntax von createfile.
danke,
Amateur
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 777

(Win98, WinMe) WinXP Prof
D3 Prof, D6 Pers, D2k5 Pers., Turbo C++ Explorer
BeitragVerfasst: Do 20.10.05 16:37 
gehts net auch mit assign? ansonsten hilft bei problemen mit der syntax die delphi hilfe sehr oft...

_________________
"Kein dummes Gerede. Kein Rumrätseln. Denkt an nichts anderes mehr, nur noch an das, was vor euch liegt. Das ist die wahre Herausforderung. Ihr müßt euch vor euch selbst schützen, Leute." (Rennes in "Cube")
Beiträge: >700
stifflersmom
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 194

XP /XP PRO/ SuSE div.
D1 - D7, BDS 2006
BeitragVerfasst: Do 20.10.05 18:24 
Kleiner Code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
Procedure Erstelledatei(DateiName:String);
Var DasFile : TextFile;
Begin
If Not fileExists(Dateiname) Then
 Begin
 Assignfile(DasFile,DateiName);
 Rewrite(Dasfile);
 End;
end;


Hoffe, es hilft.

Moin
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 20.10.05 18:26 
Aber dann bitte das CloseFile nicht vergessen

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Jeppen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39



BeitragVerfasst: Fr 21.10.05 16:49 
vielen dank

hat geholfen

-----
Alles ein frage ds codes
stifflersmom
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 194

XP /XP PRO/ SuSE div.
D1 - D7, BDS 2006
BeitragVerfasst: Sa 22.10.05 15:32 
user profile iconuall@ogc hat folgendes geschrieben:
Aber dann bitte das CloseFile nicht vergessen


Stimmt, ich werde nachlässig