vshed.IO.INI 1.1.2

.NET Framework 4.5
Install-Package vshed.IO.INI -Version 1.1.2
dotnet add package vshed.IO.INI --version 1.1.2
<PackageReference Include="vshed.IO.INI" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vshed.IO.INI --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: vshed.IO.INI, 1.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install vshed.IO.INI as a Cake Addin
#addin nuget:?package=vshed.IO.INI&version=1.1.2

// Install vshed.IO.INI as a Cake Tool
#tool nuget:?package=vshed.IO.INI&version=1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

INI Library

This is a .Net 4.0 DLL file which can read in an entire INI file and allow easy access to the Section/Key/Value combinations. Values can also be updated and saved back to the source file or another file path.

Example Usage

    using vshed.IO.INI;

    //Read in file via constructor and loop though Sections and KeyValuePairs
    INIFile file = new INIFile("C:\someFile.ini");
    foreach(Section s in file.Sections)
    { 
            console.WriteLine(s.Name);
            foreach(KeyValuePair e in s.Elements)
            {
                    console.WriteLine(s.Key + " = " + s.Value);
            }
    }

    //Read in file and loop though all Sections, KeyValuePairs, and comments
    file.Read("C:\someOtherFile.ini");        
    foreach(Section s in file.Sections)
    { 
            foreach(string c in file.Sections.Comments) {console.WriteLine(c);}
            console.WriteLine(s.Name);
            foreach(KeyValuePair e in s.Elements)
            {
                    foreach(string c in e.Comments) {console.WriteLine(c);}
                    console.WriteLine(s.Key + " = " + s.Value);
            }
    }
Product Versions
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2 402 5/26/2019
1.1.1 329 5/26/2019
1.1.0.41252 342 5/10/2019