storing 64*64 integers from a file into a 2D array : <p>If i have a file that has a table of 64*64 integers. (The first 64 will be row 0; the next 64 will be row 1, and so on..). How do I store that table into a 2D array.
Here is my code </p>

<pre><code> #include &lt;iostream&gt;
    #include &lt;fstream&gt;
    using namespace std;
    int main()
    {   
        ifstream infile;
        infile.open("table.txt");
        if (infile.fail())
        {
            cout &lt;&lt; "could not open file" &lt;&lt; endl;
            exit(6);
        }
        int array[63][63];      
        while (!infile.eof())
        {
            infile &gt;&gt; array[63][63];
        }
        cout &lt;&lt; array[63][63] &lt;&lt; endl;
        return 0;
    }
</code></pre>

<p>when this is executed I only get "1"</p>
