Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Delta

 
Grant Crofton
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Grant Crofton
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Carl, that looks like it will be useful.
You've been very helpful today.
Here, have five stars for helpfulness:
*****
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic