Jay Cline - 2006-03-27

I'm looking for a way to edit files that are in the following format:

[YesNo 1]
1
[List 1]
entry1
entry2
entry3
[YesNo 2]
0

etc....  Similar to an .ini file, but without the key/value pairs... I need to be able to parse the sections, and have the contents of each section editable. 

I can usually cobble together what I need, but I'm not sure where to start to pull all the categories and values from the data file. 

Any suggestions?