Save output to a TXT file