I want to make a program that modifies INI files, but I don't know how to make, How can I access the Sections, and the Keys??
Thanks.
Printable View
I want to make a program that modifies INI files, but I don't know how to make, How can I access the Sections, and the Keys??
Thanks.
I have a DLL written in VB6 that works with inifiles.
I think the functions you need are in that DLL.
You can use this DLL in VB.NET.
I haven't tried converting the DLL to .NET yet.
If you want to I can give it to you.
Can you send me the code? and I will try to convert the .dll of VB 6 to .NET, if you can't send me the code I am interested anyway.
Thanks.
mailto: [email protected]
I'll see what i can do.
You can use the SetPrivateProfile,GetPrivateProfile functions to read and write to INI files:cool:
i saw i think in gotdotnet.com a class for reading them
not to downplay ini, but ini has been replaced by XML now. Developers more often use xml these days for configuration files. Also you can store all your config data and use a technique called Serialization to easily save the array's state to an xml file and restore/save it when need be.
Ini is still fine, but you really should look into XML when you have the time.