I think that in fact the question needs additional information. Often people ask questions regarding what they think they need to do, instead of asking questions related to what they are actually trying to accomplish.
Why do you need this instead of the usual ini read methods? If they are existing ini files, you should use Tinifile.ReadSections to read the section names into a string list, and then iterate through this list with Tinifile.ReadSectionValues to read all the section name / value pairs.
Do you read existing INI files or read and write your own files? If these are your own files, then Andreas has a good answer above.
Miked source share