storing text results to a file