private void saveCodeIntoFile(String className) throws IOException {
		String code = readCodeFromFile(className);
		File file = new File(className + ".txt");
		BufferedWriter writer = new BufferedWriter(new FileWriter(file, true));
		writer.write(completeTime);
		writer.newLine();
		List<String> codeContent = new ArrayList<String>();
		Pattern pattern = Pattern.compile("[\\S]+");
		Matcher matcher = pattern.matcher(code);
		while (matcher.find()) {
			String matchContent = matcher.group();

			if (matchContent.contains("{")) {
				if (hasSameWordIn(codeContent)) {
					codeContent.add(matchContent + "\n" + "        ");
					continue;
				}
				codeContent.add(matchContent + "\n" + "    ");
				continue;
			} else if (matchContent.contains(";")) {
				codeContent.add(matchContent + "\n");
				continue;
			} else if (matchContent.contains("}")) {
				codeContent.add(matchContent + "\n");
				continue;
			} else {
				codeContent.add(matchContent + " ");
			}
		}

		for (String codeText : codeContent) {
			System.out.print(codeText);
			if (codeText.contains("\n")) {
				writer.write(codeText);
				writer.newLine();
			} else {
				writer.write(codeText);
			}
		}
		writer.flush();
		writer.close();
	}