Hi all,
I have a .ini file in the following format:
[Alpha]
entry=empty
key=123
more=less
[Beta]
entry=window
pass=123
[Gamma]
key=123
password=123
Those entries are not fixed, so I dont know the sections names and I do not know if or what keys go with each of the existing section. That being said I want to get the following two functions.
First, I'd like to read the existing sections from the given file with something like:
/getsection (or /getsection file.ini)
which will return something (a String) like
Found sections: Alpha Beta GammaOnce I know the sections, the second and last step is to get the entries by something like
which should return the following two lines:
Unfortunately my knowledge about the mirc coding syntax is terrible, so any solution is welcome.
Thanks in advance!