第一次保存一些静态的东西,每次都恢复 [英] save some static things for first time and restore every time
本文介绍了第一次保存一些静态的东西,每次都恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想保存一些东西。
,每次运行程序时,都会读取此设置。
我该怎么做?
如果我在注册时使用,我该怎么办?
i wants to save some things for one time.
and every time when program be run, this settings be read.
how i can do it?
if i use from registery, how must i do it?
推荐答案
不要使用注册表。每次访问注册表变得越来越难,并且有充分的理由。相反,请将您的数据保存在安全的地方:我应该在哪里存储数据? [ ^ ]
Don't use the registry. It gets harder and harder each time to access the registry, and for good reasons. Instead, save your data in a safe place: Where should I store my data?[^]
如果你想使用注册表,网上有很多c#例子。您还可以使用文件,例如xml文件。您也可以使用数据库。
很多选项。
If you want to use the registry there are many c# examples online. You can also use a file, such as an xml file. You could also use a database.
Many options.
这篇关于第一次保存一些静态的东西,每次都恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文