Пример #1
0
 public static void Delete(LOGGER_NAMES name)
 {
     try
     {
         if (File.Exists(m_dic[name]) == true)
         {
             File.Delete(m_dic[name]);
         }
     }
     catch (Exception err)
     {
     }
 }
Пример #2
0
 public static void Write(LOGGER_NAMES name, string msg)
 {
     try
     {
         init();
         FileStream fs = new FileStream(m_dic[name], FileMode.Append, FileAccess.Write);
         using (StreamWriter sw = new StreamWriter(fs))
         {
             sw.Write(msg);
             sw.Close();
         }
     }
     catch (Exception err)
     {
     }
 }