public static boolean appendLine(File textFile, String line) {
		if (!textFile.exists()) {
			return false;
		}
		try {
			ArrayList<String> lines = new ArrayList<String>();
			BufferedReader buff = new BufferedReader(new FileReader(textFile));
			while (true) {
				String s = buff.readLine();
				if (s == null) {
					break;
				}
				lines.add(s);
			}
			buff.close();
			PrintWriter out = new PrintWriter(new FileWriter(textFile));
			for (String s: lines) {
				out.println(s);
			}
			out.println(line);
			out.close();
			return true;
		} catch (IOException ex) {
			return false;
		}
	}