hytos / DTI_PID / APIDConverter / Log.cs @ d8b09f9f
이력 | 보기 | 이력해설 | 다운로드 (613 Bytes)
1 | 465c8b6e | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | using System.IO; |
||
7 | |||
8 | namespace AVEVA.PID.CustomizationUtility |
||
9 | { |
||
10 | public static class Log |
||
11 | { |
||
12 | d327a608 | gaqhf | private static readonly string Path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + @"\APID Converter.log"; |
13 | 465c8b6e | gaqhf | |
14 | public static void Write(string text) |
||
15 | { |
||
16 | using (StreamWriter sw = File.AppendText(Path)) |
||
17 | { |
||
18 | sw.WriteLine(text); |
||
19 | sw.Close(); |
||
20 | sw.Dispose(); |
||
21 | } |
||
22 | } |
||
23 | } |
||
24 | } |