文件名称:CompareFiles
-
所属分类:
- 标签属性:
- 上传时间:2013-04-19
-
文件大小:14kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
C#文件比较,比较两个文件大小和内容是否一样,需要先引入using System.Drawing,将使用者所选取的文本文件的完整路径显示于TextBox1和 TextBox2文本框中,判断相同的文件是否被引用两次,检查文件大校如果两个文件的大小并不相同,则视为不相同,逐一比较两个文件的每一个字节,直到发现不相符或已到达文件尾端为止,从每一个文件读取一个字节,然后关闭文件,最后返回比较的结果。在这个时候,只有当两个文件的内容完全相同时,"file1byte" 才会等于 "file2byte"。-C# file, compare two file size and content, need to be introduced the using System.Drawing displays the full path of the text file selected by the user TextBox1 and TextBox2 of of text box, determine if the same file is referenced two times, check the file Colonel, if the two files are not the same size, not considered the same by-side comparison of the two documents each byte read from a file until you find do not match or has reached the end of the document so far, a byte, and then close the file, and returns the result of the comparison. At this time, only when the contents of two files are identical, " file1byte" will be equal to the " file2byte" .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CompareFiles/CompareFiles.csproj
CompareFiles/Form1.cs
CompareFiles/Form1.Designer.cs
CompareFiles/Form1.resx
CompareFiles/Program.cs
CompareFiles/Properties/AssemblyInfo.cs
CompareFiles/Properties/Resources.Designer.cs
CompareFiles/Properties/Resources.resx
CompareFiles/Properties/Settings.Designer.cs
CompareFiles/Properties/Settings.settings
CompareFiles.sln
CompareFiles.suo
CompareFiles/Properties
CompareFiles/bin
CompareFiles/obj
CompareFiles
CompareFiles/Form1.cs
CompareFiles/Form1.Designer.cs
CompareFiles/Form1.resx
CompareFiles/Program.cs
CompareFiles/Properties/AssemblyInfo.cs
CompareFiles/Properties/Resources.Designer.cs
CompareFiles/Properties/Resources.resx
CompareFiles/Properties/Settings.Designer.cs
CompareFiles/Properties/Settings.settings
CompareFiles.sln
CompareFiles.suo
CompareFiles/Properties
CompareFiles/bin
CompareFiles/obj
CompareFiles
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.