Save String in a EEprom

Hi

Hope you can help me, I lost many hours triyng to write and retrieve strings in the EEprom of my arduino mega, only works well with byte variables.

How can do it?

Thanks

There are Strings (String objects spelled with a capital S) and strings(null terminated character arrays or c-strings). You can not store a String object in eeprom, as it a pointer to other memory. Character arrays, or c-strings can be stored in eeprom. Use the eeprom.put() and eeprom.get() library functions in EEPROM.h to handle variables which are not single bytes.

Take a look at the "EEPROMex" library, it adds functionality that I believe may do exactly what you want. I had problems with the eeprom.put() and eeprom.get() library functions so I switched.
Good Luck & Have Fun!
Gil