IniFileSharp.IniSharp
1.0.3
dotnet add package IniFileSharp.IniSharp --version 1.0.3
NuGet\Install-Package IniFileSharp.IniSharp -Version 1.0.3
<PackageReference Include="IniFileSharp.IniSharp" Version="1.0.3" />
paket add IniFileSharp.IniSharp --version 1.0.3
#r "nuget: IniFileSharp.IniSharp, 1.0.3"
// Install IniFileSharp.IniSharp as a Cake Addin #addin nuget:?package=IniFileSharp.IniSharp&version=1.0.3 // Install IniFileSharp.IniSharp as a Cake Tool #tool nuget:?package=IniFileSharp.IniSharp&version=1.0.3
IniSharp
This is a C# Class that provides functionality for reading and writing INI files. INI files are commonly used for configuration purposes in many applications. Supports Windows,Linux,Android,iOS,macOS,Unity.
Features:
Reading and parsing INI files: The library allows you to easily read and parse INI files, extracting key-value pairs and sections. Retrieving values: You can retrieve values from specific sections and keys in the INI file. Modifying values: The library provides methods to modify existing values in the INI file. Adding new sections and keys: You can add new sections and keys to the INI file. Writing and saving changes: Once you have made modifications to the INI file, you can save the changes back to the file. Usage:
Initialize the INIFile object with the path to the INI file. Use the provided methods to read, modify, or add values. Save the changes back to the INI file.
Example:
// Initialize the INIFile object
IniSharp iniFile = new IniSharp("config.ini");
//or Initialize the INIFile object with commentChar
IniSharp iniFile = new IniSharp("config.ini",';');
//or Initialize the INIFile object with Encoding.UTF8
IniSharp iniFile = new IniSharp("config.ini",Encoding.UTF8);
//or Initialize the INIFile object with commentChar and Encoding.UTF8
IniSharp iniFile = new IniSharp("config.ini",';',Encoding.UTF8);
// Read values from the INI file
string value = iniFile.GetValue("SectionName", "KeyName");
// Modify an existing value
iniFile.SetValue("SectionName", "KeyName", "NewValue");
// Add a new section and key
iniFile.SetValue("NewSection", "NewKey", "Value");
string value = iniFile.GetValue("SectionName", "KeyName","DefualtValue");
//Delete a Key
DeleteKey(section,key);
//Delete a Section
DeleteSection(section);
//Delete All Sections
DeleteAllSection();
// Get All sections
List<string> sections=GetSections();
// Get All Keys
List<string> Keys=GetKeys(section);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on IniFileSharp.IniSharp:
Package | Downloads |
---|---|
Shinya.Core
Shinya.Framework |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.3 | 9,104 | 4/12/2024 |