I know how to get all the section names from a file, but how can I accumulate values from within the same file. For example in this file I want to add all the WalMart= values (in this example it would be 350). But I want to add all the others the same way in all the sections. The ticker is the "Walmart" or "Target" names are need to be read in from a seperate file into a table then search the INI file for these values.
[05/05/2004]
Walmart=100
Walmart Disc=10
Walmart School Disc=1
Walmart Family Disc=9
Target=500
Target Disc=20
Target School Disc=10
Target Family Disc=15
[05/06/2005]
Walmart=250
Walmart Disc=20
Walmart School Disc=3
Walmart Family Disc=18
Target=50
Target Disc=2
Target School Disc=1
Target Family Disc=8
[05/05/2004]
Walmart=100
Walmart Disc=10
Walmart School Disc=1
Walmart Family Disc=9
Target=500
Target Disc=20
Target School Disc=10
Target Family Disc=15
[05/06/2005]
Walmart=250
Walmart Disc=20
Walmart School Disc=3
Walmart Family Disc=18
Target=50
Target Disc=2
Target School Disc=1
Target Family Disc=8
Comment