-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I would like to add a config directory to the project that contain important configuration files for the execution of the application.
I would like the configuration files to be parsed on application start, I don't want to have to recompile the application if I change these settings.
A common format is to have each setting separated by line breaks:
setting1=value1
setting2=value2
comment that will be ignored
setting3=value3
I think it should ignore lines with comments and empty lines and should throw errors for incorrectly formatted files.
if possible I would like to access these settings by checking something like:
Config::setting1 == "value1"
Also, remember to close the file as soon as you pulled the contents, I don't want it to lock up the handle the whole time the application is running.