/ini.net

Library for reading and writing to INI file

Primary LanguageC#GNU Lesser General Public License v3.0LGPL-3.0

ini.net

Ini.net is Dotnet Framwork library for reading and writing to INI file

How to install

  1. Open your project in Visual Studio.
  2. Right click on References and select Manage NuGet packages.
  3. Search for Tantowi.Ini, and install

How to use

  1. Read ini file
    IniFile ini = IniFile.of("d:\\config.ini");
    string name = ini.Read("setting", "company.name");
  1. Write ini file
    IniFile ini = IniFile.of("d:\\config.ini");
    ini.Write("setting", "company.name", "Github Corporation");
  1. Get list of section
    IniFile ini = IniFile.of("d:\\config.ini");
    string[] sections = ini.GetSections();
  1. Get list of key in a section
    IniFile ini = IniFile.of("d:\\config.ini");
    string[] keys = ini.GetKeys("setting");

Documentation






Copyright © 2020 Tantowi Mustofa