string tempFileName = "DETAIL_" + DateTime.Now.ToString("yyyyMMddHHmmssffff") + ".txt";
string tempFilePath = Environment.CurrentDirectory + "\\" + tempFileName;
var output = new StreamWriter(tempFilePath, false, Encoding.UTF8);
output.WriteLine(string.Format("{0},{1}", item.Name, item.UserName));
output.Flush();
output.Close();
output.Dispose();
Console.WriteLine("====全部生成完毕====");
Console.ReadLine();
05-11 09:32
查看更多