I want to total data in an ini file for each Section, there may or may not be a duplicate value. I want to add all the data from these values from all sections.
example
[section1]
value1=100
value3=2
[section2]
value2=5
value3=20
[section3]
value2=101
The name of "value1, value2, value3" are stored as section names in another INI file.
[value1]
[value2]
[value3]
I know how to get the section names from the second file INIFile.GetSectionNames(filename), but how do I scan the first file for these names and add the data. So I get a total of
Value1 = 100
Value2 = 106
Value3 = 22
example
[section1]
value1=100
value3=2
[section2]
value2=5
value3=20
[section3]
value2=101
The name of "value1, value2, value3" are stored as section names in another INI file.
[value1]
[value2]
[value3]
I know how to get the section names from the second file INIFile.GetSectionNames(filename), but how do I scan the first file for these names and add the data. So I get a total of
Value1 = 100
Value2 = 106
Value3 = 22
Comment