java复制File文件操作
摘要:
==========================复制File操作===========================================
/**
*
* @param newPath要赋值的路径
* @param newName新文件名称
* @param oldPath 旧文件路径
* @return error 或者newPath + "/"+newName
*/
@SuppressWarnings("unused")
public static String complyFile(String newPath,String newName,String oldPath){
//String newPath = "WebRoot/WEB-INF/1";// 复制的新路径
//String oldPath = "WebRoot/WEB-INF/ebusiness.db";// 旧文件
try {
File file = new File(oldPath);
int by 阅读全文
posted @ 2013-09-25 13:00 qgc 阅读(545) 评论(0) 推荐(0)
浙公网安备 33010602011771号