public void getFile(){ //Get the text file File file = new File(newFolder,"MyTest.txt"); //Read text from file StringBuilder text = new StringBuilder(); try { BufferedReader br = new BufferedReader(new FileReader(file)); String line; while ((line = br.readLine()) != null) { text.append(line); text.append('\n'); } br.close(); } catch (IOException e) { Log.i("TAG","ERROR." + e); } //Find the view by its id TextView tv = (TextView)findViewById(R.id.showFile); //Set the text tv.setText(text.toString()); }