Here you can find the source of renameFile(File source, File dest)
Parameter | Description |
---|---|
source | : source |
dest | : destination |
public static void renameFile(File source, File dest)
//package com.java2s; /******************************************************************************* * This software is released under the licence CeCILL * /*from w w w. j av a 2 s. c o m*/ * see Licence_CeCILL-C_fr.html see Licence_CeCILL-C_en.html * * see <a href="http://www.cecill.info/">http://www.cecill.info/a> * * @copyright IGN ******************************************************************************/ import java.io.File; public class Main { /** * Traduction to file * @param source : source * @param dest : destination */ public static void renameFile(File source, File dest) { source.renameTo(dest); } }