function that produces a two dimensional list from files containing numbers
<p>Write a function table() that takes a parameter a string representing a file name and a number n.  The function should open and read the contents of the corresponding file.  The file will contain one line with exactly n*n numbers separated by blank spaces.  The function table() should create and return an n x n two-dimensional list containing the n*n numbers as follows: The first row of the table will contain the first n numbers, the second row will contain the next n numbers, and so on until the nth row.  The following shows what table() should display when run on the files data1.txt and data2.txt.</p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>table('data1.txt', 3)</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>[['3', '4', '5'], ['6', '7', '8'], ['9', '10', '11']]</p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>table('data2.txt', 4)</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>[['3', '4', '5', '6'], ['7', '8', '9', '10'], ['11', '12', '13', '14'], ['15', '16', '17', '18']]</p>

<p>Clearly a homework question, so <strong>NO answers</strong>, just pointers to help me get started. I have no clue where to start.</p>
