String program;
try {
File f = new File("test");
char[] CB = new char[(int) f.length()];
Reader reader = new InputStreamReader(new FileInputStream(f), "UTF-8");
reader.read(CB);
program = new String(CB);
reader.close();
} catch (Exception ex) {
System.out.println(ex);
return;
}