Phobos function to check if files are identical?
XavierAP via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 13 21:51:05 PDT 2017
On Monday, 13 March 2017 at 17:47:09 UTC, H. S. Teoh wrote:
>
> Binary comparison is easy. Just read the files by fixed-sized
> chunks and compare them.
Follow up question... What is the best @safe way? Since
File.byChunk() is @system. Just out of curiosity, I would rather
use it and flag my code @trusted, although I guess there could be
concurrency issues I have to take into account anyway... anything
else?
More information about the Digitalmars-d-learn
mailing list