This is in my txt file that i'm trying to put into a 2d array:
000010
000010
000010
000010
001110
001000
Sometimes the user will have more or less rows/columns of data so I got this to dynamically build the 2d array, just dont know how to get the info into it...here:
level_map = new int *[LEVEL_MAP_ROWS];
for(int i = 0; i < LEVEL_MAP_ROWS; i++)
{
level_map[i] = new int [LEVEL_MAP_COLUMNS];
}
I'm accessing the txt file like this:
ifstream file ("theFile.txt");