c# windows get files in directory code example
Example 1: c# get files of type in directory
string[] files = System.IO.Directory.EnumerateFiles(directory, "*.*").ToArray();
Example 2: c# read file current directory
var path = Path.Combine(Directory.GetCurrentDirectory(), "\\fileName.txt");