Created
November 27, 2018 17:16
-
-
Save hmcclungiii/276c2314f3b4b5305e2214045638c7b1 to your computer and use it in GitHub Desktop.
Filespec of file in the same directory as the current executable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const string ConfigFile_Filename = "ENTER FILENAME HERE"; | |
private string GetExePath() | |
{ | |
return(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)); | |
} | |
private string GetFilespec() | |
{ | |
return(System.IO.Path.Combine(GetExePath(), ConfigFile_Filename)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment