You can use tilemap to associate with number as coordinates.
In that case you see ground tile number is 28 then you should set in dictionary as 28 = 1
Then import your map text and do action to create tiles from dictionary keys, also picking coordinates according to length and newline in txt like:
newline number max 9 goes to last tile.Y coordinate.