private static String readFile(String filename) {
		BufferedReader reader = null;
		try {
			reader = new BufferedReader(new FileReader(filename));
			String line = null;
			String text = "";
			while ((line = reader.readLine()) != null) {
				text += line + "\n";
			}
			reader.close();
			return text;
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			if (reader != null)
				e.printStackTrace();
		}
		if (reader != null)
			try {
				reader.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		return null;
	}