Change FileReader to FileInputStream