Java中对文件重命名

时间:2014-10-09 15:38:48   收藏:0   阅读:156
File file = new File("D:\\aa\a.txt");
    file.renameTo(new File("D:\\aa\\b.txt"));
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!