I need to a 7x7 matrix read from a file , but it isn't working.. Any idea why?
bool LoadGame()
{
ifstream myfile("file".txt");
if (myfile.is_open())
{
while (!myfile.eof()){
for (int i = 0; i <= 7; i++)
for (int j = 0; j <= 7; j++)
myfile >> matrix[i][j];
}
}
myfile.close();
else cout << "Unable to open file";