when to use environment variables?
I'm developing an application (embedded) that needs some configuration setting to be loaded on startup. The way I've usually done this before is a custom formatted configuration file that the applications reads on startup. I'm wondering if using the environment variables would be a better way? When are environment variables preferred over a configuration file?
I'd like most settings to be loaded one time at startup, but also have some settings that can be changed during runtime, without stopping and restarting the application. Is this something that environment variables can help me to do?
Any info is appreciated!
Thanks,
Mark
|