Adding data in INI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • markstaylor
    Indigo Rose Customer
    • Oct 2003
    • 296

    Adding data in INI

    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
    SELECT * FROM Users WHERE IQ > 0;
    o rows Returned
  • markstaylor
    Indigo Rose Customer
    • Oct 2003
    • 296

    #2
    sorry wrong thread....
    SELECT * FROM Users WHERE IQ > 0;
    o rows Returned

    Comment

    Working...
    X