I need a loot generator, recomend programming language

I need a loot generator, recomend programming language

Hello, im making a mod for Flare, sadly Flare doesnt include a random loot generator and all of them must be defined by hand one by one. The definitions are pretty simple; ex:

[item]
id=31
name=Reinforced Pants
INCLUDE items/base/armor/cloth/legs.txt
gfx=Reinforced_pants
level=2
price=250
abs=1,2

I want to make a small program that will take some values and output something like that, its been 10 years since i last programmed, is there something with little to no dependencies and dirty easy to use?