3D dungeon crawler

I’m looking to develop a 3D dungeon crawler, i was wondering how i would implement a map loader using a .txt file. I want the map loader to read the text file and render a wall when it reads “1”, and nothing when it reads “0”. What would be the best way to go about implementing this feature?