Torna al Thread
public void WriteLogToFile(String Exp)
{
string AbsolutePathLogFile = "";
if (!System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(AbsolutePathLogFile)))
System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(AbsolutePathLogFile));
System.IO.StreamWriter File = System.IO.File.AppendText(AbsolutePathLogFile);
if (!string.IsNullOrEmpty(Exp))
File.WriteLine(Exp);
File.Close();
}