rickyah / ini-parser

Read/Write an INI file the easy way!
MIT License
971 stars 241 forks source link

Request for default of empty string instead of null value #192

Open jamalmazrui opened 5 years ago

jamalmazrui commented 5 years ago

The Windows API functions for reading ini values allow a default of an empty string to be returned if a key is not found. I appreciate the current default of a null value rather than raising an error, but I would prefer a default of an empty string ("") instead. Is this currently possible without deriving a custom parser class? If not, I hope such a configuration could be added.

rickyah commented 4 years ago

Will try to add a configuration option for next version

rickyah commented 4 years ago

This will be the default behaviour for version 3.0, but will add a configuration option in the upcoming vresion 2.6.0 for this