code: def closeStreamToFile(self) :
  		
  		if self.streamBuffer is None :
  			raise ValueError("Commit lines is only for when you are streaming to a file")
  
  		for i in xrange(len(self.streamBuffer)) :
  			self.streamBuffer[i] = str(self.streamBuffer[i])
  		self.streamFile.write('\n'.join(self.streamBuffer))
  		self.streamFile.close()
  
  		self.streamFile = None
  		self.writeRate = None
  		self.streamBuffer = None
  		self.keepInMemory = True
docs: Appends the remaining commited lines and closes the stream. If no stream is active, raises a ValueError