创建文件夹
Directory.CreateDirectory(path)
string path = "D:/2014研究生复试/SOURCE";
Directory.CreateDirectory(path);
path += "/readme.txt";
FileInfo fi = new FileInfo(path);
if (!fi.Exists)
{
fi.Create().Close();
}
StreamWriter sw = new StreamWriter(path);
string[] s = connStr.Split(';');
foreach (string str in s)
{
sw.WriteLine(str);
}
sw.Close()