Techniques to access Application Settings

In every application, you will have at least a few configuration items that you might not want to hardcode. Instead, you would want them to change in the future, after the application goes live, without touching the code. 

In general, I would classify the configuration items into two categories:

Whatever might be the use of the configuration value, you need to have a place to store them that is accessible to your application. 

In this recipe, we will learn how and where to store these configuration items and different techniques to access them from your application code.