Old 22nd December 2008, 10:31   #1
nitaparmar
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?
nitaparmar is offline   Reply With Quote
Old 22nd December 2008, 10:50   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 22nd December 2008, 11:20   #3
Animaether
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
Animaether is offline   Reply With Quote
Old 23rd December 2008, 05:55   #4
nitaparmar
Junior Member
 
Join Date: Dec 2008
Posts: 2
Thanks Animaether

That code worked.
nitaparmar is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump