A way to get the color value from a picure file

I´m using OpenGL and GLUT and would like to look at some code about this…

I would like to have a picture file, you can tell me what format I should use, and be able to point out the coordinates to one pixel and get the color value back, the picture is black and white.

Thanks for those answeres I may recive.