zendar zendar - 1 year ago 101
Ini Question

Reading/writing an INI file

Is there any class in the .NET framework that can read/write standard .ini files:


Delphi has the
component and I want to know if there is anything similar for C#?

Answer Source

The creators of the .NET framework want you to use XML-based config files, rather than ini files. So no, there is no builtin mechanism for reading them.

There are third party solutions available though. Take a look at An INI file handling class using C#.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download