Support to write data points in .dat file