Hi. I'm trying to find a way of comparing two files, and finding out the differences between them - preferably without having the files to compare, so using some kind of checksum. This is in order to have a backup of a file, and when you back it up next, to only back up the parts of the file that have changed. I think you'd need some hard maths to work this sort of thing out, but if anyone knows of a site with any information about it, I'd be grateful. Thanks.
posted 15 years ago
No easy task. If your really serious on this, I suggest you check out diffutils from GNU. It will be a fairly large project but, you could port this from it's original c source to Java. Or, you could just create a gui front end to the exe in java. Hope this helps and good luck