搜题
问题   更新时间2023/4/3 12:59:00

写出以下程序的功能。

import java.io.*; public class C { public static void main(String[] args) throws IOException { File inputFile = new File(“a.txt"); File outputFile = new File(“b.txt"); FileReader in = new FileReader(inputFile); FileWriter out = new FileWriter(outputFile); int c; while ((c = in.read() ) != -1) out.write(c); in.close(); out.close(); } } 复制文件a.txt到文件b.txt
王老师:19139051760(拨打)