/// <summary>
/// 写入txt
/// </summary>
/// <param name="path">路径</param>
/// <param name="body">内容</param>
private static void txtWrite(string path, string body)
{
using (StreamWriter txt = new StreamWriter(path, true, Encoding.Default))
{
txt.Flush();
txt.WriteLine(@"
日期时间:{0}
发送状态:{1}
----------------->", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), body);
txt.Close();
}
}