config.ini文件被更新在哪里以及如何保留用户定义的变量 [英] config.ini file is overriden by update where and how to keep user defined variables

查看:171
本文介绍了config.ini文件被更新在哪里以及如何保留用户定义的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们从用户获取文件的路径,并将其保存在config.ini中以启动eclipse。但是当我们更新时,我们看到config.ini文件被覆盖,我们松开了我们获取并保存在config.ini文件中的信息。

We get the path of a file from user and keep it in config.ini to start eclipse. But when we update we see that config.ini file is overriden and we loose the information we got and saved in config.ini File.

我应该在哪里保留用户参数。更新后,在config.ini文件中保持配置参数不会覆盖的可能性很大? (例如我想保留某个键值对)。如果不喜欢保留用户参数以及在哪里?

Where should I use to keep user parameters. Is it possbile to keep a configuration parameter not overriden in config.ini file after an update ? (For example I want to keep a certain key-value pair.) If not how do you prefer to keep user parameters and where ?

推荐答案


如果不喜欢保留用户参数和哪里?

If not how do you prefer to keep user parameters and where ?

将它们存储在用户的主目录。

Store them in the user's home directory.

这篇关于config.ini文件被更新在哪里以及如何保留用户定义的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆