write to data file in float,int,string