/// <summary>
/// 记日志
/// </summary>
/// <param name="str"></param>
public void LogWrit(string str)
{
string SqlFileName = "1.txt";
string pluPath = AppDomain.CurrentDomain.BaseDirectory + "1.txt";//plu文件路径
if (File.Exists(pluPath))
{
File.Delete(pluPath);
}
using (StreamWriter sw = new StreamWriter(pluPath, false, Encoding.GetEncoding("GB2312")))
{
sw.Write(str);
sw.Close();
}
}