how to use basic EEPROM ?

need help.. i want to use eeprom for my led.. if sw1 push the led on and turn off supply then after turn on supply still led on. and if sw2 is push the led off.

only sw2 can turn off the led. and sw1 to turn on the led.

Do you have some code? Otherwise, my answer is like: Save the state of LED into EEPROM on each change and read it in setup() for initial setting.