filewriter « byte « Java Data Type Q&A





2. FileWriter to write bytes    forums.oracle.com

3. Saving Byte Using FileWriter Class    forums.oracle.com

Now on executing the program the result from the line System.out.print("Output from File : " + bf.read()); is 63. But the other system out prints -128 which is correct as maximum range of byte is -128 to 127. I have also tried with 129 but it prints 63. Can any body suggest any reason for this?