C#
xsophiax
这个作者很懒,什么都没留下…
展开
-
C#学习笔记之INI文件处理
在使用C#时有些时候要存储一些信息,会使用到INI配置文件。 using System.Runtime.InteropServices; 1. 源码 namespace HCIUtilsLog { class ZGIniFile { private string iniPath; [DllImport("kernel32")] ...原创 2019-05-17 17:15:51 · 258 阅读 · 0 评论 -
C#学习笔记之LOG文件存储
在有些小项目中,要使用到存储LOG信息(纯文本的);此处选用streamwriter示例: 1.库 using System.IO; 2. 源码 namespace HCIUtilsLog { class ZGLogMessage { System.IO.StreamWriter fs = null; public void initL...原创 2019-05-17 17:25:14 · 626 阅读 · 0 评论