📜  如何在c#代码示例中创建目录文件夹

📅  最后修改于: 2022-03-11 14:49:09.994000             🧑  作者: Mango

代码示例2
Using System.IO; 

//gets the directory where the program is launched from and adds the foldername
string path = Path.Combine(Environment.CurrentDirectory, "foldername");

//Creates a directory(folder) if it doesen't exist
Directory.CreateDirectory(path);