Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
Can any tell me how to store key value pairs in app.config file and save them so that the values will not disappear even after closing the application.

Thank you
Posted

If you are using App.Config to store values in <app key="" value=""> or CustomSections section use ConfigurationManager class, else use XMLDocument class.

For code refer below link:
Read/Write App.Config File with .NET 2.0[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900