<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.io.*"%>
<html>
<head><title>ni </title>
</head>
<body>
<%
try{
FileReader fis=new FileReader("d:/down.txt");
BufferedReader f1=new BufferedReader(fis);
FileWriter fos = new FileWriter("d:/save.txt");
BufferedWriter f2=new BufferedWriter(fos);
String s=null;
while((s=f1.readLine())!=null)
{
f2.write(s);
f2.flush();
out.println(s);
f2.newLine();
}
fis.close();
f1.close();
out.print("拷贝完成");
}
catch(IOException e){
out.print("IO异常");
}
%>
</body>
</html>