read file into a 2D array

how do i write a function that reads a maze into a 2-dimensional array from the file maze.txt. the maze is a series of spaces and asterisks that has 30 rows and 30 cols.
std::cin.getline(cin,array[i]) + for loop = solution!

Although ideally, you'd use a 1d array of std::strings.

-Albatross
Topic archived. No new replies allowed.