public class ershiqi {
public static void main(String args[]) throws IOException{
String path="";//初始化路径1
原文请找腾讯752018766辣,文-论'文.网http://www.751com.cn path2=br.readLine();
BufferedReader read =new BufferedReader(new FileReader(path));//读
BufferedWriter write =new BufferedWriter(new FileWriter(path2));//写
String s,space="";
try{
while(read.ready()){//当可读的时候
s=read.readLine();//读取一行
write.write(space);//写入空格
write.write(s);//写入读到的内容
write.newLine();//新写一行
}
write.close();
read.close();
System.out.println("拷贝完成!");
}catch(Exception e){
e.fillInStackTrace();
e.getStackTrace();