Click here to Skip to main content
15,885,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Can please let me know how can i get the count of keys in a section of a config.ini file.
If it is for two or three section i can hard code it but the case is i had 'n' number of keys in a section and how i can i achieve the count of keys.It is very urgent can anyone please help me ,if you could do this help i would be grateful.


Regards,
Jo.
Posted
Comments
Richard MacCutchan 9-May-14 5:08am    
Read each entry in the section and parse it to see if it looks like a key. Don't forget to add 1 to your counter for each key you find.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900