public final static void copyFile(ResourceFile fromFile, File toFile, boolean append,
			TaskMonitor monitor) throws IOException {

		try (InputStream fin = fromFile.getInputStream()) {
			if (monitor != null) {
				monitor.initialize((int) fromFile.length());
			}
			copyStreamToFile(fin, toFile, append, monitor);
		}
	}
Copy the fromFile contents to the toFile.

@param fromFile source file
@param toFile destination file
@param append if true and the file exists, the fromFile contents will be
				 appended to the toFile.
@param monitor if specified the progress will be reset and will advance to
				  100% when the copy is complete.
@throws IOException thrown if there was a problem accessing the files
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java