![]() |
VOOZH | about |
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" />
<PackageVersion Include="IniFileSharp.IniSharp" Version="1.0.3" />Directory.Packages.props
<PackageReference Include="IniFileSharp.IniSharp" />Project file
paket add IniFileSharp.IniSharp --version 1.0.3
#r "nuget: IniFileSharp.IniSharp, 1.0.3"
#:package IniFileSharp.IniSharp@1.0.3
#addin nuget:?package=IniFileSharp.IniSharp&version=1.0.3Install as a Cake Addin
#tool nuget:?package=IniFileSharp.IniSharp&version=1.0.3Install as a Cake Tool
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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on IniFileSharp.IniSharp:
| Package | Downloads |
|---|---|
|
Shinya.Core
Shinya.Framework |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.3 | 20,044 | 4/12/2024 |