c# get path of current file code example
Example 1: c# get folder of full ilepath
string fileName = @"test.txt";
string currentDirectory = Directory.GetCurrentDirectory();
string[] fullFilePath = Directory.GetFiles(currentDirectory, filename, SearchOption.AllDirectories);
Example 2: get documents path c#
String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);