SyntaxFix
Write A Post
Hire A Developer
Questions
using System.IO; //add this namespace also
string[] filePaths = Directory.GetFiles(@"c:\Maps\", "*.txt", SearchOption.TopDirectoryOnly);