title: Creating a Table(array) of Records
body: <p>If I wanted to store records from two files into a table (an array of records), could I use a format similar to the below code, and just put both file names in def function like def readTable(log1,log2): and then use the same code for both log1 and log2 allowing it to make a table1 and a table2?</p>
  
  <pre><code>def readTable(fileName):
      s = Scanner(fileName)
      table = []
      record = readRecord(s)
      while (record != ""):
          table.append(record)
          record = readRecord(s)
      s.close()            
      return table
  </code></pre>