Cosmos/Users/Orvid/PlugViewer/Log.cs
kudzu_cp a58ad95c10
2014-07-14 15:56:02 +00:00

24 lines
573 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace PlugViewer
{
public static class Log
{
private static StreamWriter streamWriter = new StreamWriter(System.Windows.Forms.Application.StartupPath + "\\log.txt");
public static void WriteLine(string s)
{
streamWriter.WriteLine(s);
}
public static void Close()
{
streamWriter.Flush();
streamWriter.Close();
streamWriter.Dispose();
}
}
}