I didn'tget what is my.computer?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim file1 As String = My.Computer.FileSystem.ReadAllText("c:\images\5.bmp") Dim file2 As String = My.Computer.FileSystem.ReadAllText("c:\images\5a.bmp") If InStr(file1, file2) Then ' Using the above this will show files are the same MessageBox.Show("Files are the same") Else MessageBox.Show("Files are not the same") End If End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim file1 As String = My.Computer.FileSystem.ReadAllText("c:\images\5.bmp") Dim file2 As String = My.Computer.FileSystem.ReadAllText("c:\images\5a.bmp") If InStr(file1, file2) Then ' Using the above this will show files are the same MessageBox.Show("Files are the same") Else MessageBox.Show("Files are not the same") End If
Dim file1 As String = My.Computer.FileSystem.ReadAllText("c:\images\5.bmp")
Dim file2 As String = My.Computer.FileSystem.ReadAllText("c:\images\5a.bmp")
If InStr(file1, file2) Then
' Using the above this will show files are the same MessageBox.Show("Files are the same")
' Using the above this will show files are the same
MessageBox.Show("Files are the same")
Else
MessageBox.Show("Files are not the same")
End If
End Sub
This is as simple as you can get.