目录
1.文本
2.日志
3.Excel表
1.文本
using System.Text;namespace (自己创建的一个类)
{/// <summary>/// 配置文件*.ini读写器。/// </summary>public class IniFile{[System.Runtime.InteropServices.DllImport("kernel32")]private static extern long WritePrivateProfileString(string section, string key, string value, string file);[System.Runtime.InteropServices.DllImport("kernel32")]private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder value, int size, string file);private string _File;private int _Size = 255;