There are a lot of different ways to store tile map data. Generally speaking, you will want to use something like Tiled Map Editor and the TMX format, to avoid re-inventing the wheel with your own ...