vc中有没有处理ini文件的类,或请介绍处理ini文件的代码与函数.谢谢(最好有例程)!!!
谢谢! 问题点数:100、回复次数:3Top
1 楼sufeng(sufeng)回复于 2002-06-12 17:21:28 得分 50
test.ini内容
[section1]
key=234
[section2]
other=ad
char rtn[32];
char filename[32]="test.ini";
读取
GetPrivateProfileString("section1","key","defaultvalue",rtn,sizeof(rtn),filename);
rtn应该返回234
写入:将helloworld赋给section2的other
::WritePrivateProfileString("section2","other","helloworld",filename);
Top
2 楼masterz(www.fruitfruit.com)回复于 2002-06-12 22:21:15 得分 40
http://211.157.102.21/expert/topic/788/788458.xml?temp=1.736087E-02Top




