This is the old topic and there are quite a few post about this.
I found following articles are quite helpfull and actually, I based on their help to make a solution that fit my need:
http://geekswithblogs.net/EltonStoneman/....aspx
http://stackoverflow.com/questions/2905151
Well, in my project, I have a 3 different configuration files...