creates correct .Dat file