Some programmers like for example my U2 USB Programmer have a verification routine after writing the program in the chip. You might want to use that feature that has already been created for you. Easier for you and no headaches .