问题
I need to compare 5 files by their file paths: a,b,c,d,e and find duplicates if exists. How can I do this in c++ via md5sum comparison of files?
回答1:
You'd need to compute a checksum for each file (write it yourself or call an external program), get hold of each file, ... This depends on the operating system. It is much easier to do something like this in a scripting language.
来源:https://stackoverflow.com/questions/21766918/how-to-check-multiple-files-for-duplicates-in-c