|
|
#1 |
|
Junior Member
Join Date: Dec 2008
Posts: 2
|
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
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 IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Dec 2008
Posts: 2
|
Thanks Animaether
That code worked. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|