Aks*_*Aks 11 c#
如果我有路径C:\Test\Test1\a.txt并且Test1不存在,我怎样才能确保在追加到.txt之前创建它?
C:\Test\Test1\a.txt
Jon*_*eet 14
怎么样:
Directory.CreateDirectory(Path.GetDirectoryName(filename));
归档时间:
15 年,6 月 前
查看次数:
3300 次
最近记录:
12 年,2 月 前