Computer Science Canada

Tile..

Author:  1337_brad [ Sun Feb 13, 2005 8:03 pm ]
Post subject:  Tile..

Hey I just need to get refreshed on how to read a tiled format from a textfile, ie: 1 2 3 4 5
6 7 8 9 1
2 3 4 5 6

I want to get this into a 2d array so that those numbers are saved to the co-ordinate coresponding with where they are in the text file
I belive it is something like this I just forgot how to exactly do it:

code:

   open : stream1, "Thefile.txt", get

   for i: 1.. 5
           for j: 1..3
              get: stream1, TheArray(i,j)
end for
end for


: