Autor Beitrag
Roadrunner116
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: Sa 27.01.07 15:11 
Hi, ich hab es mit der Suchfuntion nichts gefunden, darum poste ich mal...
Ich möchte den inhalt eines memos abspeichern (memo1.lines.savetofile('C:.....').
so jetzt soll diese datei, je nach eingabe in einem edit-feld gespeichetr werden, also in
ausblenden Delphi-Quelltext
1:
Memo1.Lines.SaveToFile('export\' + edit1.Text + '\Dateiname.txt');					

Jetzt habe ich nicht bedacht, dass dieser ordner zum hineinspeichern angelegt sein muss, welche funktion muss ich benutzen?

Gruß Roadrunner116
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 27.01.07 15:18 
Nichts Gefunden "Ordner erstellen", da gibts doch hier massig von zb.
www.delphi-forum.de/...ght=ordner+erstellen

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Roadrunner116 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 89

Win XP Home, Ubuntu Linux 6.06
Delphi 7, Java, PHP
BeitragVerfasst: Sa 27.01.07 15:21 
ich zweifel an mir selbst ... :roll:

sorry...
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 27.01.07 16:18 
user profile iconRoadrunner116 hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
Memo1.Lines.SaveToFile('export\' + edit1.Text + '\Dateiname.txt');					

Da fehlt der Ordner... Machs lieber so:
ausblenden Delphi-Quelltext
1:
Memo1.Lines.SaveToFile(ExtractFilePath(ParamStr(0)) + '\export\' + edit1.Text + '\Dateiname.txt');