Java File Rename renameFile(File source, File dest)

Here you can find the source of renameFile(File source, File dest)

Description

Traduction to file

License

Open Source License

Parameter

Parameter Description
source : source
dest : destination

Declaration


public static void renameFile(File source, File dest) 

Method Source Code

//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);
    }
}

Related

  1. renameFile(File file, String newName)
  2. renameFile(File file, String newName)
  3. renameFile(File file, String newName)
  4. renameFile(File file, String newName)
  5. renameFile(File file, String sign, String suffix)
  6. renameFile(File sourceFile, String newFileName)
  7. renameFile(File src, File dest)
  8. renameFile(File src, File dest)
  9. renameFile(File src, File dest, boolean overwrite)