常建57

路漫漫其修远兮。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
       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;
            }

        }

 

posted on 2013-11-14 22:22  常建57  阅读(116)  评论(0编辑  收藏  举报