Please suggest best design for accomodating different versions of configuration file(INI format) into a single file. My requirement is I have three different versions of a configuration say V1.config, V2.config, V3.config. The different versions needs to be supported. I would like to achieve a file V.config from which I can read configuration info of all differnt versions.
My
My Requirement would be to support 3 different versions simultaneously with a sinlge file.
I working on a design where somehow i could combine these versions to a single file say V and read the data according to the version.Lets say [A\A2] will be there in this common/combined file but it is there in V1 and in V3 but not in V2. How can that be achieved.
What is the best practice usually followed, what would be possible design?
To help visualize: V1.config would be something like:
[A\A1]
/*section for config info */
[A\A2]
/*section for config info */
[A\A3]
/*section for config info */
V2.config
[A\A1]
/*section for config info */
/* Removed a section */
[A\A3]
/*section for config info */
[A\A4]
/*Added new section for config info */
V3.config
[A\A1]
/*section for config info */
[A\A2]
/*Re-introduced the section in Version V1 for config info */
/* Removed a section in Version V2 */
[A\A4]
/*section for config info */