.csv to .dat in decoder