And writes to a different EEPROM location each time.
More to think about there then.All part of the learning process.

Learning how to program these PIC's is like learning a foreign language, doing a crossword puzzle and a Rubick's cube (all at the same time)...

It'll come with time and practice though (I hope...!)

Dave