Page 1 of 1

keeping sign

Posted: Tue Jun 28, 2005 10:14 am
by sokrys
Is it possible to read file with values of signed byte range (-126, 127) - (I used to program in java) - modify them - let's say: $a ^ $b =$c under condition that byte ^ byte = always byte and write the modified values as new file preserving sign ???
I tried to do it, but everytime I have all negative values gone ! so results are distorted.