[英]append properties file from java
From java I want to read .properties file and if property is present I want to re-set the property again. 从Java我想读取.properties文件,如果存在property,我想再次重新设置该property。 lets say .properties file has entry password=123 now I want to check If password entry is there replace 123 with 567. but need to keep all content as it is.
假设.properties文件的条目密码为123,现在我要检查是否存在密码条目,将123替换为567。但是需要保留所有内容。 how to do that?
怎么做? please help
请帮忙
One solution I can think of rightaway is 我能想到的一种解决方案是
This approach has couple of limitations, 这种方法有几个局限性,
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.