java读取配置文件信息
生活随笔
收集整理的這篇文章主要介紹了
java读取配置文件信息
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
String configfile = "cfg/client.cfg";// 讀取配置文件賬號密碼Properties props = new Properties();InputStream in = new BufferedInputStream(new FileInputStream(configfile));props.load(in);String userName = props.getProperty("userName");String password = props.getProperty("passWord");// 讀取配置文件賬號密碼
?
轉載于:https://www.cnblogs.com/zhanzhuang/p/9578253.html
總結
以上是生活随笔為你收集整理的java读取配置文件信息的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 我拜伦,悟空,雨果,狼王,全有用哪个打天
- 下一篇: 认识和了解python