I think this will be a simple question. I have an App.config that contains a path
<appSettings>
<add key="Path" value="C:\\Test\\" />
</appSettings>
I want to add a couple more paths to the App.config so I don't have them hard coded in my C# windows service. Will it work if I change this
string newPath = @"C:\SecondTest\" + fileName;
to this
string newPath = ConfigurationManager.AppSettings["SecondPath"] + fileName;
I could then create SecondPath in the App.config.