Combined filereader and filewriter into filehandler.