reading a map

Blitz3D Forums/Blitz3D Programming/reading a map

I am confused about a process.

Lets say, in bad pseudo code I have a text map file that is 79X79.

I want to open this file and read the contents into an array THEN use that array to create a dungeon map.

So first:

dim dungeon (79,79)
open map.txt
for x = 1 to 79 read map.txt
next
for y = 1 to 79 read map.txt
next

THEN

OK I am stumped... how do I get the computer to look at the array and put map pieces according to number in the array???

-RZ