fix output file format csv to txt