try { FileReader fr=new FileReader(file); int a; String s=""; while((a=fr.read())!=-1) { s+=(char)a; } ta.setText(s); fr.close(); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); }