Comparing 2 files in VSS 6.0d
All I need to do is compare 2 file versions to see if they are identical or not. I really do not care what the differences are. Right now I am reading both versions of the file into variables and checking them for equality. Surly there is a better way?
Thanks!
[506 byte] By [
bryansp] at [2007-12-24]
Are you trying to compare two IVSSVersion objects to see if they refer to the same version? I can't think of a better way than comparing the fields.
Or do you want to compare the file contents of two versions? In my opinion the best way would be to hash both files and compare the hash values. If you expect them to be different most of the time, compare the file sizes first for better performance