//这个里面无法创建C:/work/test11.txt,之前的几个都创建成功了,求解!!!
import java.io.*;
public class output{
public static void main(String args[]){
try{
File f=new File("C:/work/key.key");
File a=new File("C:/work/test9.txt");
File b=new File("C:/work/test11.txt");
FileInputStream keyfis=new FileInputStream(f);
FileInputStream fis=new FileInputStream(a);
FileOutputStream fos=new FileOutputStream(b);
int key[]=new int[128];
int c=fis.available();
for(int i=0;i<c;i++){
key[i]=keyfis.read();
fos.write(fis.read()-key[i]);
}
}catch(Exception e){}
}
}
|