masud <> wrote in message news:<>...
> Hi!
> I want to know how to read a GIF file in binary mode so that i can
> seperately read each byte and alter it if i want to. After alteration
> of any bit, i want to write the whole GIF file again in a new file as
> it is. I am working on the Linux platform. Any help in this regard
> would be highly appreciated.
> Thankyou.
> Masud.
Hi, that depends on where you reside, and where the program will be
used. If you live or work in Canada, France, Italy, Germany, the
United Kingdom, or Japan, GIF files are still patented so it is
illegal to read or write them without permission from Unisys. If you
are in the USA, the patent expired 20 June 2003. (
http://burnallgifs.org/ ) The rest is a simple matter of coding
This has brought new meaning to "illegal expressions" within C++... At
least the ^ (xor) operator is still legal despite some people's
efforts.