public void patchConnect(File inFile, File outFile) throws IOException {
		BufferedReader reader = new BufferedReader(new FileReader(inFile));
		FileWriter writer = new FileWriter(outFile);
		try {
			for (;;) {
				String line = reader.readLine();
				if (line == null) {
					break;		// End of file reached
				}
				String stripLine = stripConnectComment(line);
				if (stripLine == null) {	// This line only contained a comment
					writer.write(line);		// Output the original line
				}
				else {
					ConnectLine connLine = new ConnectLine();
					connLine.parse(stripLine);
					ConnectLine matchLine = connectSet.ceiling(connLine);
					if (matchLine == null || 0 != matchLine.compareTo(connLine)) {
						writer.write('#');		// Comment out the line
						connLine.emit(writer);
					}
					else {
						matchLine.emit(writer);
						matchLine.isMatched = true;
					}
				}
				writer.write('\n');
			}

			// Append any entries we didn't match
			for (ConnectLine connLine : connectSet) {
				if (connLine.isMatched) {
					continue;
				}
				connLine.emit(writer);
				writer.write('\n');
			}
		}
		finally {
			reader.close();
			writer.close();
		}
	}
Read in a connection file and write out an altered version of the file where:
  1) Any entry that matches something in connectSet, has its authentication method altered
  2) Any entry that does not match into connectSet is commented out in the output
  3) Entire line comments are preserved
@param inFile the file to read
@param outFile the new file to write
@throws IOException if the files cannot be read from or written to
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/ServerConfig.java