CUDA Image read Program read image file

hi

Here I want to write a simple read image program in CUDA .

How can i generate ppm files for simple image file?

How to do programming for reading the image file ?

Pls give Example .

Thanks
Khyati Shah