import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class ddd {
/**
*
* @param args
*/
FileOutputStream fos;
FileInputStream fis;
File file=new File("F:\\a\\abc.txt");
File file1=new File("F:\\s\\a.txt");
try {
fos=new FileOutputStream(file1);
fis=new FileInputStream(file);
int i;
while((i=fis.read())!=-1){
fos.write((char)i);
}
}catch(Exception e){
e.printStackTrace();
}
}
}
|
|