insert data to file