[Solved] How to set path of a text file created by an visual studio 2010 application?


The folder where the executable resides is:

string executableLocation = System.IO.Path.GetDirectoryName(
    System.Reflection.Assembly.GetExecutingAssembly().Location);

And so you want to save your file to:

System.IO.Path.Combine(executableLocation, "myfile.txt");

3

solved How to set path of a text file created by an visual studio 2010 application?