public static void WriteLog(string filePath,string fileName,string msg) { try { string fullPath = filePath + "\" + fileName; using (System.IO.StreamWriter sw = new System.IO.StreamWriter(fullPath, false, Encoding.UTF8)) { sw.WriteLine(msg); } } catch (Exception ex) { throw; } }