code: public static void copyFile(File srcFile, File destFile) throws IOException {
      copyFile(srcFile, destFile, true);
    }
docs: Copies a file to a new location preserving the file date.
  <p>
  This method copies the contents of the specified source file to the
  specified destination file. The directory holding the destination file is
  created if it does not exist. If the destination file exists, then this
  method will overwrite it.
  <p>
  <strong>Note:</strong> This method tries to preserve the file's last
  modified date/times using {@link File#setLastModified(long)}, however
  it is not guaranteed that the operation will succeed.
  If the modification operation fails, no indication is provided.
  
  @param srcFile  an existing file to copy, must not be <code>null</code>
  @param destFile  the new file, must not be <code>null</code>
  
  @throws NullPointerException if source or destination is <code>null</code>
  @throws IOException if source or destination is invalid
  @throws IOException if an IO error occurs during copying
  @see #copyFileToDirectory(File, File)