title: How to load text from file to textview
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7568795/android-reading-from-a-text-file">android reading from a text file</a>  </p>
  </blockquote>
  
  
  
  <p>So I need to load text, but I don't know how :( To save text I'm doing this </p>
  
  <pre><code>File logFile = new File("sdcard/data/agenda.file");
  if (!logFile.exists())
  {
      try
      {
          logFile.createNewFile();
      } 
      catch (IOException e)
      {
  
          e.printStackTrace();
      }
  }
  try
  {
      //BufferedWriter for performance, true to set append to file flag
      BufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true)); 
      buf.append(editText1.getText());
      buf.newLine();
      buf.close();
  }
  catch (IOException e)
  {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>So, how to load it back by button tap?</p>