<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(self, fname):
 """ saves a grid to file as ASCII text """

        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))