public static boolean genereerBrief(Klant k, String nm) {
		SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
		Template tp = zoekTemplate(nm);
		String txt = tp.getTemplateInhoud();
		String result = "";
		txt = txt.replaceAll("\\]", "\\[");
		String[] rs = txt.split("\\[");
		for (int i = 0; i < rs.length; i++) {
			if (i % 2 == 0) {
				result += rs[i];
			} else {
				result += tp.getGegeven(rs[i], k);
			}
		}

		try {
			File theDir = new File("brieven");
			if (!theDir.exists()) {
				theDir.mkdir();
			}
			String datum = dateFormat.format(Calendar.getInstance().getTime()).replaceAll("/", "-");
			FileWriter fw = new FileWriter("./brieven/" + tp.getTemplateNaam() + "brief" + "_" + k.getNaam() + k.getTussenvoegsel() + k.getAchternaam() + "_" + datum + ".txt");

			PrintWriter pw = new PrintWriter(fw);
			pw.print(result.replace("\n", System.lineSeparator()).replace("\r\n", System.lineSeparator()));
			pw.close();
		} catch (IOException exc) {
			exc.printStackTrace();
		}

		return true;
	}