save element data to file element_data.dat