public static void main(String[] args) throws Exception {
FileWriter fw = new FileWriter("aaaaa.txt");
BufferedWriter bufw = new BufferedWriter(fw);
bufw.write("ABC");
bufw.newLine();
bufw.write("EFG");
bufw.newLine();
bufw.flush();
bufw.close();
fw.close();--------------->我关了bufw以后用不用再关闭fw?关和不关有什么区别?希望大神们给个详细点的解释
} |