松鼠的博客

导航

C++ Builder 处理 INI文件的方法

使用TIniFile类
TIniFile *GameIni = new TIniFile ("fungame.ini");

GameIni
->WriteBool("Options""Sound"true);
GameIni
->WriteInteger("Options""Level"3);
GameIni
->WriteBool("Configuration""ShowToolBar"false);
delete GameIni;

posted on 2008-10-11 08:53  Xproer-松鼠  阅读(712)  评论(0)    收藏  举报