import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
public class CopyDemo {
public static void main(String[] args) throws Exception {
//选择你要读取的文件
FileInputStream fis=new FileInputStream("E:\\圣彼得的送葬队伍 下.txt");
//选择你要存放的文件
FileOutputStream fos=new FileOutputStream("E:\\copy.txt");
//byte[] buf=new byte[1024];
// BufferedReader bufr=new BufferedReader(buf);
int len;
while((len=fis.read())!=-1){
fos.write(len);
}
fis.close();
fos.close();
}
}