I have already try this article
INI Reader / Writer Class for C#, VB.NET, and VBScript[
^]
but i have to insert section and key and it doesn't work cuz I must insert section and key but in most cases i have only sections. and in some cases I have both.
I have to say that the text file created automatically from another app and i can't do anything for the format of the file.
I just want to read and write this file.