Directory.CreateDirectory("test");
string[] files = Directory.GetFiles("path/to/directory"); foreach(string file in files) { Console.WriteLine(file); }This will get all the files in the directory specified by the path and print their names to the console. These examples are part of the System.IO namespace, which provides classes for working with files and directories.