Modified output file from csv to txt