Answers for "Directory.GetFiles: how to get only filename"

0

Directory.GetFiles: how to get only filename

string[] files = Directory.GetFiles(dir);
foreach(string file in files)
    Console.WriteLine(Path.GetFileName(file));
Posted by: Guest on May-26-2021

Code answers related to "Directory.GetFiles: how to get only filename"

Browse Popular Code Answers by Language