get the location of the same file c# code example
Example: c# read file current directory
var path = Path.Combine(Directory.GetCurrentDirectory(), "\\fileName.txt");
var path = Path.Combine(Directory.GetCurrentDirectory(), "\\fileName.txt");