How is User.config created and how it is used

Shrikey picture Shrikey · Jul 10, 2012 · Viewed 20.3k times · Source

I started reading about config files and I read about user.config. Googled about it, but couldnt find how it is created and how it is used. Also read that for each user a seperate user.config will be created. Even read questions in StackOverflow, but they didnt help. Can anyone point me to the right resources. Thanks in advance :)

Thanks @Ramesh , @Michael and @Frozendragon for your answers. Gone through the articles posted by you. Assume that I have a web application and 3 users named "A", B" and "C" are using them. I have an app.config in which i provided default values. I read that those values can be changed accordinly and will be saved in the UserName.config files. This is where I am lost. If the values are saved in the corresponding user profiles, how are they fetched back when the same user tries to open the app again ? How does my app knows in which files to look ?