public String replaceInsert(File mainFile) {
		String input = "";
		try {
			Scanner in = new Scanner(mainFile);
			while (in.hasNext())
				input += in.nextLine() + "\n";
		} catch (FileNotFoundException e) {
			Main.error("file not found (" + mainFile.getName() + ")");
		}
		
		Pattern p = Pattern.compile("#insert \"(.*)\"");
		Matcher m = p.matcher(input);
		if (m.find()) {
			String insertee = "";
			String fileName = m.group(1);
			try {
				Scanner inserteeScanner = new Scanner(new File(fileName));
				while (inserteeScanner.hasNext())
					insertee += inserteeScanner.nextLine() + "\n";
			} catch (FileNotFoundException e) {
				Main.error("file not found (" + fileName + ")");
			}
			input = input.replace(m.group(0), insertee);
		}
		return input;
	}