Categories > TinyButStrong general >

ini-files and subblocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Pirjo Posio
Date: 2005-05-08
Time: 12:29

ini-files and subblocks

Hi,
I'd like to use Condutiarii's ini-file-technique to store two small "tables".
company.ini
[company1]
company="1"
name="Abc"
...
[company2]
company="2"
name="Xyz"
...

employee.ini
[company1-1]
company="1"
emplname="John Doe"
...
[company1-2]
company="1"
emplname="Jane Doe"
...

What should I do to use TBS subblocks to get a list of
company1 name
John Doe
Jane Doe
company2 name
employees for company2
Is it possible to do, by making a change in my data and/or Conduratii's code? Thanks in advance if someone can help me!
By: Pirjo Posio
Date: 2005-05-17
Time: 11:48

Re: ini-files and subblocks

Finally success! Proves only my limited programming skills that it took 9 days... If someone needs this solution, just ask for it. Now I'm too busy to modify the solution usable for others.