try (FileInputStream fis = new FileInputStream(new File("E:\\Java技术栈.txt"))) {
while (fis.read(buffer) > 0) {
System.out.println(new String(buffer));
}
} catch (Exception e) {
e.printStackTrace();
}
try (FileInputStream fis = new FileInputStream(new File("E:\\Java技术栈.txt"))) {
while (fis.read(buffer) > 0) {
System.out.println(new String(buffer));
}
} catch (Exception e) {
e.printStackTrace();
}