code: public static void copyFile(File fromFile, File toFile) throws IOException {
          copyFile(new FileInputStream(fromFile), new FileOutputStream(toFile));
      }
docs: Creates the specified <code>toFile</code> as a byte for byte copy of the
  <code>fromFile</code>. If <code>toFile</code> already exists, then it
  will be replaced with a copy of <code>fromFile</code>. The name and path
  of <code>toFile</code> will be that of <code>toFile</code>.<br/>
  <br/>
  <i> Note: <code>fromFile</code> and <code>toFile</code> will be closed by
  this function.</i>
  
  @param fromFile - File to copy from.
  @param toFile   - File to copy to.