SyntaxFix
Write A Post
Hire A Developer
Questions
var d = new DirectoryInfo(@"C:\logs"); var list = d.GetFiles("*.txt").Select(m => m.Name).ToList();