Пример #1
0
        private static void LogToFile(string message)
        {
            string logFileName = ModPaths.GetLogFilePath();

            File.AppendAllText(logFileName, message);
            File.AppendAllText(logFileName, Environment.NewLine);
        }
Пример #2
0
        private static void clearLog()
        {
            string fileName = ModPaths.GetLogFilePath();

            if (File.Exists(fileName))
            {
                File.WriteAllText(fileName, string.Empty);
            }
        }