public static void AddLgoToTXT(string logstring)
{
string path = AppDomain.CurrentDomain.BaseDirectory + "log_opera.txt";
// if (!System.IO.Directory.Exists(path))
//{
// Directory.CreateDirectory(path);
//}
//string pathlog = path + "\\log_opera.txt";
if (!System.IO.File.Exists(path))
{
FileStream stream = System.IO.File.Create(path);
stream.Close();
stream.Dispose();
}
using (StreamWriter writer = new StreamWriter(path, true))
{
writer.WriteLine(logstring);
}
}