50,530
社区成员
发帖
与我相关
我的任务
分享
FileInputStream fis = null;
HSSFWorkbook wb = null;
try{
File f = new File("testUnreadable.xls");
if (f.exists()){
fis = new FileInputStream(f);
wb = new HSSFWorkbook(fis);
}
}catch (Throwable th){}
finally{
if (fis != null){
fis.close();
}
}
FileOutputStream stream = null;
try{
stream = new FileOutputStream("New.xls");
wb.write(stream);
}catch (Exception e){}
finally{
if (stream != null)
{
stream.close();
}
}