I currently working on a C# application where need to store information into .ini files.
I perform some search online and able to read and write info to .ini by importing kernel32 to my application.
But now i come across problem where i want to insert and read multiple record using loop, because when I add another record, it just replace the previous record.
My first question is how to make it insert 3 record to the .ini eg:
[Username]
Name=abc
[Username]
Name=bcd
[Username]
Name=cde
Or hopefully can be like this
[Username]
Name=abc
Name=bcd
Name=cde
Also i would like to read these record using loop and assign the Name into an array.
Any suggestion?
I perform some search online and able to read and write info to .ini by importing kernel32 to my application.
But now i come across problem where i want to insert and read multiple record using loop, because when I add another record, it just replace the previous record.
My first question is how to make it insert 3 record to the .ini eg:
[Username]
Name=abc
[Username]
Name=bcd
[Username]
Name=cde
Or hopefully can be like this
[Username]
Name=abc
Name=bcd
Name=cde
Also i would like to read these record using loop and assign the Name into an array.
Any suggestion?
Comment