Archive: How to read INI file wih all sections and values


How to read INI file wih all sections and values
Hi,

I want to read .ini file with all the sections and key value pair. Is there any function which gives name all the section available in .ini file?


No, not really...you could:

a) call the ini api directly with the system plugin

b) parse the ini yourself line by line

c) redesign your .ini layout with entries like count=2 item1=foo item2=bar


should really have a peek here...
http://nsis.sourceforge.net/Category...stry_Functions

of interest to you, specifically..
http://nsis.sourceforge.net/Get_all_...es_of_INI_file
http://nsis.sourceforge.net/Get_all_...on_of_INI_file


Thanks Animaether

That code worked.