Every application has a configuration file and you want to have some keys in that file which are

  • application specific
  • easily accessible in the application
  • have read and write operations

Read the keys with the following code:

System.Configuration.ConfigurationSettings.AppSettings["keyname"];