How do I get the full path for a given file?
e.g. I provide:
string filename = @\"test.txt\";
Result should be:
Full Fi
I know my answer it's too late, but it might helpful to other's Try,
Void Main() { string filename = @"test.txt"; string filePath= AppDomain.CurrentDomain.BaseDirectory + filename ; Console.WriteLine(filePath); }