I am currently building a game and my map file contains all the data that specifies the attributes of the game field.

How do I select a range in an array element? For example I have an array of 768 elements, each element contains a string of information which represents the logic of constructing the map and rules. The first 7 characters represent the tile png, the 8th character determines if that tile is passable, etc, etc.

What method can I use to select only certain number of characters like a starting point to an ending point? Or would I want to convert to string and truncate it down?