How to check multiple files for duplicates in C++ [closed]

空扰寡人 提交于 2019-12-13 08:05:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!