(读写文件)下列程序完成了将一个文件的内容写入另一个文件的功能 在下划线处应填写的代码是_____

大学网课 已帮助 人

(读写文件)下列程序完成了将一个文件的内容写入另一个文件的功能,在下划线处应填写的代码是________。import java.io.*; public class Test { public static String file = "d:book1.java"; public static void main(String [] args) throws Exception{ BufferedReader in = new BufferedReader(new FileReader("d:book.txt")); PrintWriter out = new PrintWriter(file); String s = null; while((s=in.readLine())!=null){ _______________(s); } out.close(); in.close(); } }

A.out.read

B.in.write

C.out.write

D.in.read

(读写文件)下列程序完成了将一个文件的内容写入另一个文件的功能 在下划线处应填写的代码是_____

热搜:ts16949质量管理体系程序文件范本