Re: Help for complete novice
So you can connect your ICD2 to the PIC, and read the flash memory? Look at the disassembly listing and add the code to that, then use it to program the PIC. I'm not sure why you want to have the PIC write code to the EEPROM and then use it to program the PIC. Is it a bootloader with code in the EEPROM?
If you have the hex code in a file, you can load it into the IDE and likewise use the disassembly listing. It may require some work to use the disassembly to be accepted by the assembler to create new code for the PIC.