ok, here's my problem, I've got a Pixel X Pixel scrolling engine, right now, it generates maps on the fly.. the tiles are loaded into a 'tile surface' (I'm using directx) and they load the tiles and give everytile a number, and so I've got 3 tiles so each tile's been assigned a number to it.. so basically the map format would look like this:

111231121
122131113
133321223
231312211

and so forth, it would interpret the numbers and then display the appropriate tile on the screen for example 1 is grass tile, 2 is water tile, 3 is mountain tile and so forth? do you understand? I hope you do, ok now my map is a 2 dimensional array. it's 100 x 100... Now I generate maps like this:

Code:
Dim Map(100,100) As Byte
Randomize
    For i = 0 To UBound(Map, 1)
        For j = 0 To UBound(Map, 2)
            Map(i, j) = CByte(Rnd() * 3)
        Next j
    Next i
Now that would basically generate a map with random tiles on it.. What I want to do is, instead of making maps on the fly, i want to load it from a file, and asign the contents to the map array.. I've tried a couple of different ways to do it, but none works...

for example, I made a text file with the numbers (that are up there used as an example) and then loaded it, and it didn't load cause it was supposedly loading in one variable.. so I made another map and added commas ',' inthe numbers for example: 1,1,1,2,3,1,1,2,1

and then tried to load it, and still didn't work.. I've been trying and trying it doesn't work.. now I've come for help, so HELP ME PLEASE!!... Fox or anyone else who knows about tile engines and ****... C'mon Help me!