Is there any way to get the number of keys from an .ini file?
ie. [mysection]
server=192.168.1.100
port=1606
blah1=9090
temp1=abcd
etc
I want to get number of key (from the above example it should return 4)
Please, any help will be great.
Kernel32.dll exports GetPrivateProfileSection() which returns a null-separated list of name/value pairs. You can count the pairs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.