I have stored my app settings in Config file using ConfigurationManager Class, my config file is in a Custom Path, now I want to read my config file but my Code is not working. How should I change my code?

Storing Config File (Works perfect):

```
static void AddUpdateAppSettings2(string key, string value)
{
    try
    {
        string _path = Application.StartupPath + "\\ss.ini";
        ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap()
        {
            ExeConfigFilename = _path
        };
        Configuration configFile = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);
        var settings = configFile.AppSettings.Settings;
        if (settings[key] == null)
        {
            settings.Add(key, value);
        }
        else
        {
            settings[key].Value = value;
        }
        configFile.Save(ConfigurationSaveMode.Modified);
        ConfigurationManager.RefreshSection(configFile.AppSettings.SectionInformation.Name);
    }
    catch (ConfigurationErrorsException)
    {
        Console.WriteLine("Error writing app settings");
    }
}

```

Reading Config File (Not working, Only works if my config file store is default path) :

```
static void ReadSetting(string key)
{
    try
    {
        var appSettings =ConfigurationManager.AppSettings;
        string result = appSettings[key] ?? "Not Found";
        Console.WriteLine(result);
    }
    catch (ConfigurationErrorsException)
    {
        Console.WriteLine("Error reading app settings");
    }
}

```