Modified output file extension form csv to txt