Liste des Groupes | Revenir à cl c |
Paul wrote:
The normal way to do this, is do a hash check on the
files and compare the hash. You can use MD5SUM, SHA1SUM, SHA256SUM,
as a means to compare two files. If you want to be picky about
it, stick with SHA256SUM.
the code i posted work ok, and if someone has windows and mingw/tdm may compiel it and check the application if wantsI was going to post similar ideas (doing a linear pass working out checksums for each file, sorting the list by checksum and size, then candidates for a byte-by-byte comparison, if you want to do that, will be grouped together).
hashing is not necessary imo though probably could speed things up - im not strongly convinced that the probablility of misteke in this hashing is strictly zero (as i dont ever used this and would need to produce my own hashing probably).. probably its mathematically proven ists almost zero but as for now at least it is more interesting for me if the cde i posted is ok
Les messages affichés proviennent d'usenet.