Ashish Sethi wrote: > I am working with PPM/PGM/PBM file formats > which have the basic format :- looks like you could save yourself a lot of time and effort by first checking if you can install: http://www.pythonware.com/products/pil/ </F>