answered 14 years ago
It really depends what your output is, but for some things you could do:
sage: f = file('/desired/path/output.txt','w') sage: f.write(str(my_amazing_output)) sage: f.close()
Maybe I don't understand the question though.