I'm going to be parsing a config file in this format:
[Setup]
SetupVersion = "1.3D"
[Engine Setup]
UsingGapi = 1
Platform_Timer_HZ = 100
LandscapeMode = 0
CacheMemory = 2600
ShowFPS = 1
TickRate = 100
TicksPerFrame = 26
ScanCodeMapping = 1
The way I was thinking about handling it was just for each line, use a regex and set variables with the name of what's to the left, with the value of what's to the right, and then put the values in a form.
$10 says I'm doing it in a horrible messy and overly complex way ;)