调用方法:
string section, key, value, path; //定于
section = "key"; key = "key"; value = "keyvalue"; //赋值
path = Environment.CurrentDirectory + @"ini.ini"; //指定ini文件的路径;
smart_common_plus.INIHelper.Write(section,key,value,path); //写
smart_common_plus.INIHelper.Read(section, key, path); //读
smart_common_plus.INIHelper.DeleteKey(section, key, path); //删除
调用方法:
string section, key, value, path; //定于
section = "key"; key = "key"; value = "keyvalue"; //赋值
path = Environment.CurrentDirectory + @"ini.ini"; //指定ini文件的路径;
smart_common_plus.INIHelper.Write(section,key,value,path); //写
smart_common_plus.INIHelper.Read(section, key, path); //读
smart_common_plus.INIHelper.DeleteKey(section, key, path); //删除
![](https://i-blog.csdnimg.cn/blog_migrate/ade5dfdbc943c1cd7a2e00800a65fab3.png)
功能代码已经集成,可直接测试,100%可用
smartsofthelp 开发辅助优化工具
(smart_common_plus通用功能类库dll) 代码复用整理收藏(工具-MX复用代码工具宝典)
下载地址: https://pan.baidu.com/s/1t0ygDseBCM2VZYJ5fM-ZNg?pwd=8f34