Im inputting from a file to a 2d array and i dont know how to stop it once it gets to the end of the file the code i have for it so far is
for(int i=0; i<records; i++)
{
for(int j=0; j<month; j++)
{
inFile >> monthArray[i][j];
}
}
month is const int 12
records is const in 10
for records i want it to be able to accept up to 10 but it could be less and i dont know how to control that
any idea would be awesome :)