Writing to/reading from the EEPROM only once or an alternate way

Thanks very much for the help. Isn't there any way to change the value of a global variable within the code and make it "permanent" hehehehe. As I feel that writing the values into the EEPROM is quite a lot to do for a very simple task that I have to achieve.