eeprom does not store the data after restart....

sorry about my ? key my friend.
This is my code for write and read eeprom memory:

regs[MB_D9]= EEPROM.read(1); /error delay/

  • if (regs[MB_CTRL3] != EEPROM.read(1) ){*
  • EEPROM.write(1, regs[MB_CTRL3]); //delay error*
  • }*
    regs[MB_D10]= EEPROM.read(2); /error delay/
  • if (regs[MB_CTRL4] != EEPROM.read(2) ){*
  • EEPROM.write(2, regs[MB_CTRL4]); //delay error*
  • }*

I use the eeprom.h library and all the "regs[]" is int.
When I have my arduino powered it is working fine (I can set the values in memory but when I restart this, the eeprom.read(1 or 2) gives me 0 again.)
I use the EEPROM.read to use this values in my sketch, so I understand that the EEPROM.write is working.

(I am very sorry for my english).