[转载]c#创建文件夹 – lqsilly – 博客园
- C#
- 2014-12-08
- 73热度
- 0评论
[csharp]
string path = @"D:\abc";
string fileName = "123.txt";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
if (!File.Exists(path + "\\" + fileName))
{
File.Create(path + "\\" + fileName);
}
[/csharp]