Hi all,

I have a .ini file in the following format:

Code:
[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:
Quote:
/getsection (or /getsection file.ini)

which will return something (a String) like Found sections: Alpha Beta Gamma

Once I know the sections, the second and last step is to get the entries by something like
Quote:
/getentry Beta
which should return the following two lines:
Code:
entry=window
pass=123


Unfortunately my knowledge about the mirc coding syntax is terrible, so any solution is welcome.
Thanks in advance! smile