最好的方法来判断两个文件是否相同? [英] Best way to tell if two files are the same?

查看:418
本文介绍了最好的方法来判断两个文件是否相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我通过互联网从计算机A传输文件到计算机B使用C#使用.NET的许多方式之一进行文件传输,什么是最好的方式来判断计算机A和计算机B上的文件是相同?



我在想MD5哈希将是一个很好的方式来告诉。这似乎是一个被广泛接受的方式来说。但是,我只是仔细检查,看看是否没有更好的方式隐藏在.NET框架中。



谢谢你
托尼

解决方案

MD5是要走的路。


If I transfer a file over the internet from computer A to computer B using C# using one of the many ways to do file transfers with .NET, What is the best way to tell if the file on computer A and computer B is the same?

I am thinking that MD5 hashes would be a good way to tell. It seems like that is a widely accepted way to tell. However, I am just double checking to see if there is not a better way out there hidden in the .NET framework.

Thank you Tony

解决方案

MD5 is the way to go.

这篇关于最好的方法来判断两个文件是否相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆