I'm trying to read a file that contains text for a decimal count, convert it
to binary, increment and write it back out. I'm using Java 2 in SuSE 8.2,
installed from the SuSE CD's.
When using FileReader the values that are read in are the ASCII values of
the decimal count, formatted as two bytes for each original single ASCII
byte. Converting it to an integer results in a double digit value for each
original single digit value:
26 Original value in file - created using a text editor.
5054 The value that Java reports when using System.out.println();
to print the string value (assumed to be but not really!) or
the string converted to an integer value.
Trying other methods found on the net or in books results in the method not
found or deprecated.
And while the compiler will tell me it's deprecated, I can't find any
information about what has replaced the deprecated methods.
Thanks, John