What is the best method of getting the path the C# executable is running from?
I need to use it for temp folders etc and currently I\'m using:
Path.G
string executableLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string txtfile = Path.Combine(executableLocation, "example.txt");