title: Android read from multiple text files and show in table view
body: <p>I want some help with putting data from multiple text files into one table shown on an activity.</p>
  
  <p>The text file has a value on each line.</p>
  
  <p>I want these strings to be shown on one column, in a table, where each column shows another text files data of similar format.</p>
  
  <p>I want something like this to be shown:</p>
  
  <p><img src="https://i.stack.imgur.com/Bq9Pc.png" alt="table"></p>
  
  <p>The code im currently using shows one text file in a textview, how can i manipulate the code to make what i need possible? </p>
  
  <pre><code> public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.stats);
  
          File sdCard = Environment.getExternalStorageDirectory();
  
          String path = sdCard.getAbsolutePath() + "/SO/";  
          File file = new File(path + "cheststats.txt");
  
          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) {
          }
          TextView tv = (TextView)findViewById(R.id.tv);
          tv.setText(text);
      }
  }
  </code></pre>