File reading and printing in openGL


I am making a GUI in visual c++ and using OpenGL for drawing. I want to read a string from text file and print it on openGL screen.I need to read the string to be printed from file, as well as its x & y co-ordinates also from file. Can anyone suggest how to go about?


Try to google wglusefontoutlines and wglusefontbitmaps.

This allows you to create fonts and to print them easily on your opengl window.