Texture mapping

Hi,
How do I load an image say a ppm file or a rgb file into the texture memory so that I can do texture mapping directly ?

Thanks,
sud

You either find some image loading library, or go to www.wotsit.org and learn the file format yourself.