vshed.IO.INI 1.1.2

Library for reading in and editing INI configuration files

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"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

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);
            }
    }

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);
            }
    }

Dependencies

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 History

Version Downloads Last updated
1.1.2 234 5/26/2019
1.1.1 201 5/26/2019
1.1.0.41252 205 5/10/2019