Is GetHashCode for a file unique?
Posted on 2006-07-09
I'm using the following example to get the hash code for a file. Is this hash code unique or could there be instances of overlapping? If it's the later (instance of overlapping) help me understand how it occurs or if it's a rarity.
OpenFileDialog1.FileName = ""
If OpenFileDialog1.FileName = "" Then Exit Sub
Dim File_Stream As New System.IO.StreamReader(OpenFileDialog1.FileName)
Dim File_Hash As Integer = File_Stream.ReadToEnd().GetHashCode()
RichTextBox1.Text = File_Hash
File_Stream = Nothing