Autor Beitrag
Lihlu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53



BeitragVerfasst: Mi 25.07.12 08:43 
Hallu,

Wie schon die überschrift lautet möchte ich gerne meine .txt datei an ausführungsort speichern. Ich finde immer nur möglichkeiten um diese z.B auf C:\ abzuspeichern :/

Hat jemand eine idee ?

Gruß
Lihlu
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4807
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mi 25.07.12 09:32 
Hallo,

verwende dafür die Eigenschaft Application.StartupPath:
ausblenden C#-Quelltext
1:
string path = Path.Combine(Application.StartupPath, "file.txt");					

Für diesen Beitrag haben gedankt: Lihlu