title: Display items in edit text views from text file-Android Studio
body: <p>I would like to display items from a text file into edit text views. Below is the code that I managed to do so far and all I want to do is display the name and email in the respective edit text views. Can anyone help pls?
  The text views names are: txtShowName and txtShowEmail</p>
  
  <pre><code>public void LoadButton(View v)
  {
  
      try {
          FileInputStream fileIn=openFileInput("mytextfile.txt");
          InputStreamReader InputRead= new InputStreamReader(fileIn);
  
  
  
          char[] inputBuffer= new char[READ_BLOCK_SIZE];
          String s="";
          int charRead;
  
          while ((charRead=InputRead.read(inputBuffer))&gt;0) {
              //display items in edit textviews
          }
          InputRead.close();
          Toast.makeText(getBaseContext(), s,Toast.LENGTH_SHORT).show();
  
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>