Yeah, that's what i think Steve, ok let's start from the beginning...
For the map, you declare the width, the height and the map array
Code:
private height as integer
private width as integer
Map() as byte
The map array is now dynamic so that you can change the size of it anytime:
Code:
height=30
width=30
redim map(width,height)
To store this array you open the file in binary
Code:
Open Filename for Binary as #
Put#1,,width
Put#1,,height
Put#1,,map
Close 1
And to read it again you use Get isntead of put
Code:
Open Filename for Binary as #
Get#1,,width
Get#1,,height
Redim map(width,height)
Get#1,,map
Close 1