By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,515 Members | 1,848 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,515 IT Pros & Developers. It's quick & easy.

unformatted IO binary to ASCII to binary

P: 3
Hi guys,
i have a question here. If i have to convert a ppm image file to pgm image file. Both are in P5 and P6 format which will be binary file.
So far i can open a binary stream read and write in the exact same format.
But i need to access the value within and modify and write them out in the correct format.
Can anyone please advise me on any possible solution that i can explore.

http://netpbm.sourceforge.net/doc/ppm.html for PPM
http://netpbm.sourceforge.net/doc/pgm.html for PGM
May 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.