This demonstration (writing string to EEPROM) adopted the code from Arduino Playground and I had removed some of the features to make it simple and easy to understand.
Code below demonstrate how to write strings to EEPROM at specified location(address) and then read it back.