标签: c++ c parsing ini
有没有办法从.ini文件中获取密钥数?
即。 [mysection]
server=192.168.1.100 port=1606 blah1=9090 temp1=abcd
等
我想获得密钥的数量(从上面的例子中它应该返回4)
拜托,任何帮助都会很棒。
答案 0 :(得分:2)
Kernel32.dll导出GetPrivateProfileSection(),它返回以空值分隔的名称/值对列表。你可以算对。