public static void Delete(LOGGER_NAMES name) { try { if (File.Exists(m_dic[name]) == true) { File.Delete(m_dic[name]); } } catch (Exception err) { } }
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) { } }