От: | Аноним | ||
Дата: | 14.01.11 07:02 | ||
Оценка: |
static class pgs_logger {
private static FileStream fs = new FileStream("log.txt", FileMode.Create);
public static void write(string _module, string _text) {
StreamWriter sw = new StreamWriter(fs, Encoding.Unicode);
sw.WriteLine("{0} | {1} | {2}", DateTime.Now, _module, _text);
sw.Close();
}
}