//file的绝对路径中是否包含java
if(fileName.contains("java")){
/*//创建输入流
BufferedReader in = new BufferedReader(new FileReader(file));
//创建输出流
BufferedWriter out = new BufferedWriter(new FileWriter(file2));
//将输入流中的数据写到输出流中
String str = null;
while((str = in.readLine()) != null){
out.write(str);
//刷新流
out.flush();*/
//创建输入流
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
//创建输出流
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file2));
//将输入流中的数据写到输出流中
int len = -1;
byte[] str = new byte[1024];
while((len = in.read(str)) != -1){
out.write(str,0,len);
//刷新流
out.flush();
}