// tags: csharp, file, io, list, directory
using System; using System.IO;
class Program { static void Main(string[] args) { string path = @"C:\Users\user\Documents"; // specify the directory path that you want to list files from string[] files = Directory.GetFiles(path); // get all files in the directory specified by the path
main.cs215 chars7 lines
}
main.cs313 chars3 lines
gistlibby LogSnag