im building a directX program that will load a map in memory, i want to be able to store if in a 3D array ( eg: map(x,y,z) ) but i dont know the size of the array untill i read the map file

here's the possible dimmensions

10 <= X <= 255
10 <= Y <= 255
1 <= Z <= 3