protected ResourceFile createTempScriptFileWithLines(String... lines) throws IOException {
		ResourceFile newScript = createTempScriptFile();

		PrintWriter writer = new PrintWriter(newScript.getOutputStream());
		for (String line : lines) {
			writer.println(line);
		}
		writer.close();

		return newScript;
	}
This call will:
-open the file in an editor
-update the text area and buffer fields of this test
@param file the file to open
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java