|
Our parser is a simple but free way to manage that without headache. Here is a common ini file structure :
[group1]
field1=value1 field2=value2 field3=value3
[group2]
field1=value1 field2=value2
Says the file is called config.ini. Here is how to read it:
ActiveUp.WebControls.IniConfig config = newActiveUp.WebControls.IniConfig("c:\\config.ini");
// To retrieve the field2 of group2 string myValue = config.Groups["group2"].Keys["field2"];
Of course, you can populate the collections as usual and do manipulations.
That's all! |