code: def save(self, fname):
          
          try:
              with open(fname, "w") as f:
                  f.write(str(self))
          except Exception as ex:
              print('ERROR = cant save grid results to ' + fname + str(ex))
docs: saves a grid to file as ASCII text