File reading and printing in openGL

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

OpenGL is a graphics API. It has absolutely nothing to do with files or IO. So no, you can’t.

I guess that’s where GLUT comes in, though I am curious to know what it takes to create a Windows interface from scratch that has the bare minimums like window management and file reading.

GLUT has nothing to do with file IO either. Nor has the native Windows code equivalent. In all cases you just use whichever file IO API you wish - stdio, ifstream, Windows API, whatever.