Wednesday, June 27, 2018

A cross-platform, fully-managed configuration file reader/writer

I have recently created a cross-platform, fully-managed configuration file reader / writer
It's still 0.2.x version, so pretty unstable, but it already has some great features (listed below)
I would like to have some feedback from the community. Feel free to open issues, create PRs etc

Customization

  • customizable encoding (most encodings can be auto-detected)
  • customizable culture
  • customizable number styles (e.g. currencies, exponential notation etc)
  • customizable line endings (usually auto-detected)
  • customizable true and false (e.g. "verum" / "falsum" )
  • customizable comment characters
  • customizable key/value separator (defaults to '=')

Read and preserved

  • file header comments
  • config files with no sections (like in this [SectionName]) or even mixed: first section has no header, just keys
  • comments in general
  • section comments
  • empty lines
  • indented sections
  • indented keys
  • indented values

Values

  • default values
  • multi-line values (both quoted and not)
  • quoted values
  • null values (value-less keys)
  • array values
  • fancy float / double
  • byte-encoded values
  • smart boolean values (0/1, on/off, enabled/disabled work of the box)
A cross-platform, fully-managed configuration file reader/writer Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team