thank you very much,
sorry but i was abroad and i couldn't answer.
can you write the example with the fgetc() and fputc() functions please?
assume that i have to read e.g. a file called "image.jpc", so how should i change the program? thanks a lot,
francesco.

noreover, do i have to verify if the "image.jpc" is coded with the big or little endian mode?
because if i wrong, i think that the content of the file can be misled