private void CheckCatcheDirectory()//创建文件夹
{
if (!Directory.Exists(xmlFilePath))//xmlFilePath为文件夹路径及名字+\
{
Directory.CreateDirectory(xmlFilePath);
}
}
private void CheckFiles(string strPath)//strpath为文件夹路径,一个文件夹下创建多个文件
{
if (listName != null && listName.Count > 0)
{
string strFileName = "";
foreach(string strName in listName)
{
strFileName = strPath + strName + ".xml";
if (!File.Exists(strFileName))
{
File.Create(strFileName).Close();
}
}
}
}