code: def write(self, data):
          
          
          # Do the write
          self.backingStream.write(data)
          
          for listener in self.writeListeners:
              # Send out notifications
              listener(len(data))
docs: Write the given data to the file.