I saw these two examples in the following tutorial -
http://download.oracle.com/javase/tutorial/essential/io/charstreams.html
FileReader/FileWriter
FileInputStream/FileOutputStream
One of the difference listed in the above is that both CopyBytes and CopyCharacters use an int variable to read to and write from. However, in CopyCharacters, the int variable holds a character value in its last 16 bits; in CopyBytes, the int variable holds a byte value in its last 8 bits. Can someone explain this difference please (i.e why 16bit on one and not the other. )
Thanks