if (Directory.Exists(temp_path) == false)//如果不存
{
//在就創建file文件夾
Directory.CreateDirectory(temp_path);
}
if (!System.IO.File.Exists(filename))
{
System.IO.File.Create(filename).Close();//創建該文件
}
if (Directory.Exists(temp_path) == false)//如果不存
{
//在就創建file文件夾
Directory.CreateDirectory(temp_path);
}
if (!System.IO.File.Exists(filename))
{
System.IO.File.Create(filename).Close();//創建該文件
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。