阅读背景:

如何在java中使用新名称重命名resume(.doc)

来源:互联网 
String oldName = D:\careers.bstalents.com\build\web\uploads\Resume\old.doc;
String newName = D:\careers.bstalents.com\build\web\uploads\Resume\new.doc;

           File newFile = new File(newName);
           File oldFile = new File(oldName);
           boolean rename = oldFile.renameTo(newFile);
           if (rename) {

                    outs.write(formFile.getFileData());
                    outs.close();*/
                    FileOutputStream fileOutStream = new FileOutputStream(newFile);
                    fileOutStream.write(resume.getFileData());
                    fileOutStream.flush();
                    fileOutStream.close();
                }
String oldName = D:\careers.bstalents.com\build



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: