Reading Single Characters
void copyFile(FileReader inputFile,FileWriter outputFile){
// Read the first character.
int nextChar = inputFile.read();
// Have we reached the end of file?
outputFile.write(nextChar);
// Read the next character.
nextChar = inputFile.read();
System.out.println("Unable to copy a file.");