string _path = _fileName.Substring(0, _fileName.LastIndexOf("\\") + 1);
if (Directory.Exists(_path))//判断目录是否存在{
Directory.CreateDirectory(_path);
}
if (!File.Exists(_fileName))//判断文件是否存在
{
FileStream ss = File.Create(_fileName);
ss.Close();
}
string _path = _fileName.Substring(0, _fileName.LastIndexOf("\\") + 1);
if (Directory.Exists(_path))//判断目录是否存在