Multiple Configuration Files In One Application
-
In my application, I need to address multiple configuration files. This is because different people will supply a configuration file and the application should process the information inside. The layout of each configuration file looks like this:
Is there an easy way to keep track of several .config files and can I read those using the configuration manager? Or should I write a class to read several .xml files with said format?
-
In my application, I need to address multiple configuration files. This is because different people will supply a configuration file and the application should process the information inside. The layout of each configuration file looks like this:
Is there an easy way to keep track of several .config files and can I read those using the configuration manager? Or should I write a class to read several .xml files with said format?
It's probably better to create a class which will isolate you from the storage mechanism in the long run as you might have to switch out the xml to a database if your users grow, or you have to add backup logic etc. This will all depend on how you see the usage growing. You can also use a Key/Value store like RaptorDB to store the information which is scalable.
Its the man, not the machine - Chuck Yeager If at first you don't succeed... get a better publicist