Wrote a write() method to transfer the contents of the input file into a CSV file.