public File createTempFile(String name, String suffix) throws IOException {

		String testMethodName = testName.getMethodName();

		// these are the values used by File.createTempFile()
		String prefixName = name != null ? name : "null";
		String suffixName = suffix != null ? suffix : ".tmp";
		deleteMatchingTempFiles(prefixName + ".*" + suffixName);

		String testTempDir = getTestDirectoryPath();
		File dir = new File(testTempDir);
		String filename = prefixName + '.' + testMethodName + '.';
		File tempFile = File.createTempFile(filename, suffixName, dir);
		tempFile.deleteOnExit();

		return tempFile;
	}
Creates a file in the Application temp directory using the given name as a prefix and the
given suffix. The final filename will also include the current test name, as well as any data
added by {@link File#createTempFile(String, String, File)}.
<p>
The file will be marked to delete on JVM exit. This will not work if the JVM is taken down
the hard way, as when pressing the stop button in Eclipse.
<p>
Note: This method <b>will</b> create the file on disk! If you need the file to not exist,
then you must delete the file yourself. Alternatively, you could instead call
{@link #createTempFilePath(String, String)}, which will ensure that the created temp file is
deleted.

<p>
Finally, this method will delete any files that match the given name and suffix values before
creating the given temp file. <b>This is important, as it will delete any files already
created by the test that match this info.</b>

@param name the prefix to put on the file, before the test name
@param suffix the file suffix
@return the newly created file
@throws IOException if there is a problem creating the new file
@see #createTempFile(String)
Ghidra/Framework/Generic/src/main/java/generic/test/AbstractGenericTest.java