资 源 简 介
操作INI文件,非常方便...
使用方法:
1.先把IniFile.h,IniFile.ccp加入Porject,在要使用该类的头文件中加入
#include "IniFile.h",及CIniFile IniFile
2.读取和写入:
string = IniFile.GetString("section","item","默认")
int = IniFile.GetInt("section","item",666)
IniFile.SetString("section","item","设置值")
IniFile.SetInt("section","item",666)
3.ini文件名及路径在初始化时,用SetFileName()设置-Operation of INI file, is very convenient to use ...: 1. First IniFile.h, IniFile.ccp adding Porject, to be used in the first such document by adding# Include