Wanting to load images/sprites onto tiles from a txt file 0=grass, 1=track, 2=start finish

Hey All
I am wanting to load images/sprites onto tiles from a txt file 0=grass, 1=track, 2=start finish, i have managed to read from the text file (shown in preview)
Stuck on how to draw the tiles/images/sprites to the canvas?
splitTokens i believe is the way to go, just very confused.
any assistance will be greatly appreciated, thank you