- public static void loadDemo() throws IOException {
- Properties prop = new Properties();
- FileInputStream fis = new FileInputStream("info.txt");
- prop.load(fis);
- prop.list(System.out);
- }
- public static void main(String[] args) throws IOException {
- loadDemo();
- }
复制代码
毕老师视频中的源码
当txt文件中有中文时打印的是乱码怎么解决
|