TextLog1 C# Txt Log 만들기 public void TXTLog(String strMsg) { try { string m_strLogPrefix = AppDomain.CurrentDomain.BaseDirectory + @"LOG\"; string m_strLogExt = @".LOG"; DateTime dtNow = DateTime.Now; string strDate = dtNow.ToString("yyyy-MM-dd"); string strPath = String.Format("{0}{1}{2}", m_strLogPrefix, strDate, m_strLogExt); string strDir = Path.GetDirectoryName(strPath); DirectoryInfo diDir = new DirectoryInfo(strD.. 2009. 4. 28. 이전 1 다음