How to read and print the data from a wad file.. in opengl