I have written a program that stores its settings to a .user file using the standard ConfigurationManager mechanism. Now I would like to implement a method "save as" and "load" where the user can store his program settings to another location. Is there another possibility other than to copy the physical file?
Asked
Active
Viewed 3,087 times
0
-
http://snipplr.com/view/24482/ "Persisting data using XML config files in WinForms (saving and restoring user and application data)" Also at SO: http://stackoverflow.com/questions/1869628/how-to-use-net-configuration-files-app-config-settings-settings-to-save-and – Pedro77 Jan 20 '15 at 17:53
1 Answers
1
Here is an article with methods you need. SaveAs is named Export and Load is Import in the article.
But I could say from my experience that if you want to use application settings in custom manner it is better to implement custom SettingsProvider. Here is a good example of implementing custom SettingsProvider and storing configs in separated xml files (which is, I believe, exactly what you need).

MajesticRa
- 13,770
- 12
- 63
- 77