Help with PROGMEM(Solved)

I am saving some data to flash using PROGMEM
int var1 = 34;
int var2= 32;
int var3=534;
PROGMEM prog_uint16_t SaveMem[] = {var1,var2,var3};
After that how do I fetch the data from the flash and reasign them to var1,var2,var3.
Example:
var1 = (code to fetch data from flash for var1)
var2 = (code to fetch data from flash for var2)

If I am doing it wrong please correct me. I already tried looking at http://arduino.cc/en/Reference/PROGMEM but I don't understand it.

PROGMEM is like a readonly repository. What do you want to do?

I am trying to save the variables to flash memory(var1,var2,var3) then I want to be able to load them from flash memory and reassign them to the variables. For example var1 =32 then is saved to flash memory. var1 is somehow changed to 56. Now I want to load the flash memory so var1 = 32 again. Basicly I am just trying to save to flash so when I power off the device the variables are still saved.

That's called EEPROM :slight_smile: look that one. PROGMEM is readonly to avoid using the ram (like with big strings)

Is it possible to store an array or something in EEPROM to slow down the read/write limit from being reached. Because I have 13 values to save per write.

Not sure, you have to research something by yourself.

http://arduino.cc/playground/Code/EEPROMWriteAnything

eried:
Not sure, you have to research something by yourself.

Arduino Playground - HomePage

Alright I think I figured it all out, thanks for the help.