FilePath
File.Exists
false
Directory.Exists
string path= @"D:\DownLoad\";
foreach (string s in Directory.GetFiles(path, "*.txt").Select(Path.GetFileName)) Console.WriteLine(s);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)