I'm trying to make a piece of code that will read an ini file which contains several values. I want it to work with a combo drop down box, so 1 line out of each section in the .ini will end up in the combo box as a choice, the other values in each section will be used as variables for other parts of the code, one of which specifies a file the client software needs.. maybe an example will make more sense:
[ServerName1]
Accounting Server 'common name for combo box
ClientFile.dat 'file copied for client
\accounting\dir1 'folder path for client
[ServerName2]
Payroll Server
ClientFile.dat
\payroll\dir1
etc etc etc
What's the best way to get the app to read into the ini file, match the section to the choice they made and then gather the variables it needs to make the decisions for the file, path, etc. I'm just not able to figure a clean way to do this part.
Any help is appreciated..
[ServerName1]
Accounting Server 'common name for combo box
ClientFile.dat 'file copied for client
\accounting\dir1 'folder path for client
[ServerName2]
Payroll Server
ClientFile.dat
\payroll\dir1
etc etc etc
What's the best way to get the app to read into the ini file, match the section to the choice they made and then gather the variables it needs to make the decisions for the file, path, etc. I'm just not able to figure a clean way to do this part.
Any help is appreciated..