changes txt output to csv