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