I can have any number of following keys in web.config
<add key="WebServer1Logs" value="C:\meetDinesh"/>
<add key="WebServer2Logs" value="C:\meetDinesh"/>
<add key="WebServer3Logs" value="C:\meetDinesh"/>
<add key="WebServer4Logs" value="C:\meetDinesh"/>
The key format will remain same i.e. next will be WebServer5Logs
I want to read every key using some way so if more keys are added in future, I don't need to change the c# code to read them.
I believe this can be done with Regex can you share that regex.
or some other way also exists.
2. instead of writing so much code as you mentioned, Don't you think I can apply the regex on Webconfig
only thing the worry is web.config at Server may be not available for READ when site goes live.