详情介绍:http://zh.wikipedia.org/wiki/INI%E6%96%87%E4%BB%B6 示例: 下面是一个虚拟的程序,其INI文件有两个小节,前面的小节是用来设置拥有者的信息,而后面的小节是用来设置数据库的位置.前面的注解记载谁最后编辑此文件,而后面的注解记录为何不使用域名而是使用IP地址. [owner] name=John Doe organization=Acme Products [database] server=192.0.2.42 ; use IP addr…
Config.ini 文件操作 [SYS] sysname=hy company=hyhy tel=2 using System; using System.Collections.Generic; using System.Text; namespace Common { public class SetINI { // 声明INI文件的写操作函数 WritePrivateProfileString() [System.Runtime.InteropServices.DllImport("ke…