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

		try (InputStream fin = fromFile.getInputStream();
				OutputStream out = toFile.getOutputStream()) {

			if (monitor != null) {
				monitor.initialize((int) fromFile.length());
			}
			copyStreamToStream(fin, out, monitor);
		}
	}
Copy the fromFile contents to the toFile.  The toFile will be overwritten or created.

@param fromFile source file
@param toFile destination file
@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