InputStream inputStream = Dome.class.getResourceAsStream("/text.properties");
Properties properties = new Properties();
BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));
properties.load(bf);
System.out.println(properties.getProperty("uname"));
使用字符流读取就ok。
博客提及使用字符流读取即可,但未展开更多内容。字符流读取是信息技术中文件读取的一种方式。
1813

被折叠的 条评论
为什么被折叠?



