adding output file as .txt