Dynamically save data into program ROM

Hi

Is there any way to save a data into program ROM dynamically?

For example, I collect a data which is in RAM and want to save in ROM automatically.

Any snippet or code in Arduino?

Regards

What “ROM” are you referring to ? If you mean on the Arduino itself, then yes, you can save data to EEPROM.

See the EEPROM library.

http://arduino.cc/en/Tutorial/HomePage

http://arduino.cc/en/Reference/EEPROM