Hi everyone,
This a repeat post. My earlier post was accidentally deleted when the forums went offline a day or so ago.
My question is this: does anyone know a way to parse an .ini file (i.e., a text file)? Currently, the only section the file would have would be one containing items to populate a list box. The idea is that the items that populate the listbox should be changeable by editing an .ini file rather than having them hardcoded into the program itself. I will probably add similar info in other sections later. In other words, the contents of the .ini file will probably look something like this:
[listbox items:]
item 1 = "stuff"
item 2 = "things"
item 3 = "etc."
[someother type of config info:]
item 1 = ""
item 2 = ""
How can I locate the proper section? i.e., how can I parse the .ini file?
Thanks in advance!
This a repeat post. My earlier post was accidentally deleted when the forums went offline a day or so ago.
My question is this: does anyone know a way to parse an .ini file (i.e., a text file)? Currently, the only section the file would have would be one containing items to populate a list box. The idea is that the items that populate the listbox should be changeable by editing an .ini file rather than having them hardcoded into the program itself. I will probably add similar info in other sections later. In other words, the contents of the .ini file will probably look something like this:
[listbox items:]
item 1 = "stuff"
item 2 = "things"
item 3 = "etc."
[someother type of config info:]
item 1 = ""
item 2 = ""
How can I locate the proper section? i.e., how can I parse the .ini file?
Thanks in advance!