My Problem-
I Have to only copy-paste not more than 498888 blocks (because that's where the fork happened).Since blk000.dat files contain block information and are binaries,how do i make sure I only copy till the specified 498888 blocks ?
I did something similar to avoid having to fully sync Bitcoin Cash back in the day... there is one trick you can use to figure out which block files to remove (or not copy over)... Personally, I just copied the entire folder and then deleted the ones I didn't need... but do it whichever way you want.
Anyway, what you want to do is look at the file modified timestamp, for instance, take this screenshot:
As you can see... blk01038.dat was around 24th October... Deleting (or not copying) files from this point would mean that you wouldn't have the blocks AFTER a fork on Oct 24. There is a 1:1 relationship with the .blk and .rev files... so if you delete the "blk" files from 1038, then you'd also delete the "rev" files from the same number.
It isn't a super accurate method, and won't get it to an "exact" block number unless that block just happens to be the first one in a .dat file, but it'll get close and save a fair amount of downloading... you'll probably find that the fork wallet will probably want to reindex which is likely to eat into any time savings.