public char[] readFile(String filename)
		{
			char[] content = null;
		    File file = new File(filename); //for ex foo.txt
		    FileReader reader = null;
		    try {
		        reader = new FileReader(file);
		        char[] chars = new char[(int) file.length()];
		        reader.read(chars);
		        //content = new String(chars);
		        content=chars;
		        reader.close();
		    } catch (IOException e) {
		        e.printStackTrace();
		    } finally {
		        if(reader !=null){try {
					reader.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}}
		    }
		    return content;
		}