human
I am working on the file "December 12, 2016/Covered in class.ipynb".
The first task is:
Writing to a file
Can you write Python code for it?
 ... What is a the Python code you requested?
assistant
#Here is the Python code you requested.

class FileWriteStream(WriteStream):
    """
    Used to write data to standard out
    """    
    def write(self):
        file = open(self.destination, 'w')
        file.write(self.source_data)
        print('Wrote to file: {}'.format(self.destination))

output_write_stream_instance = FileWriteStream('some other data that I wrote', 'sample_output_file.txt')

output_write_stream_instance.write()

## Read the sample output file

file_name = 'sample_output_file.txt'

sample_output_file = FileReadStream(file_name)

sample_output_file.print_read()