mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
24 lines
573 B
C#
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();
|
|
}
|
|
}
|
|
}
|