The .Net Config File Library is a wrapper for the Windows initialization (INI) file functions that simplifies and expands upon their existing functionality. This library is available for use in any .Net-supporting language, i.e. Visual Basic, C#, and C++, or can be compiled directly into VB.Net applications.
Although Microsoft recommends using the Windows registry for saving settings between executions, INI config files have several advantages over using the registry that makes them perfect for small or portable applications. I not only coded this library but use it in all of my apps as well. 😉
Features
- 19 functions for manipulating configs at the file, section, and key level
- Support for ANSI and Unicode encodings
- Included integrated documentation for Visual Studio
- Included demo app for testing library functionality
- Included source for library and demo
- Included documentation and samples
Screenshots
Functions
- Backup()
- Clear()
- Delete()
- GetLocation()
- GetEncoding()
- RestoreBackup()
- ClearSection()
- CreateSection()
- DeleteSection()
- ReadSection()
- ReadSectionNames()
- ReadSectionString()
- WriteSection()
- ClearKey()
- ReadKeyFloat()
- ReadKeyInt()
- ReadKeyString()
- WriteKey()
Download
Changelog
2.0:
- Converted to class
- Support for use as library
- Support for unicode encoding
- Fixed DeleteSection changing the encoding
- Integrated function documentation for Visual Studio
- Improved read functions
1.2.2:
- fixed a bug with backups without a path passed failing to backup
Contribute
If you’ve used this library in your app to much success, maybe you’d like to contribute a monetary amount representing its perceived worth.