code: public static void moveFile(File src, File dest) throws IOException {
  
          copyFile(src, dest);
          if (!delete(src)) {
              throw new IOException("Failed to delete the src file '" + src + "' after copying.");
          }
      }
docs: Moves a file from src to dest.
  This method is equals to "copy -> delete."
  
  @param src
  An existing file to move, must not be <code>null</code>.
  @param dest
  The destination file, must not be <code>null</code> and exist.
  
  @throws IOException
  If moving is failed.