shiggyshag
Programmer
Hi
I wish to comapare two text file just to see if they are different.
Ie
Same = true
Diff = false
Cheers
I wish to comapare two text file just to see if they are different.
Ie
Same = true
Diff = false
Cheers
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim fso, f1, f2, contents1, contents2
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.OpenTextFile("file1.txt", 1)
contents1 = f1.ReadAll
f1.Close
Set f2 = fso.OpenTextFile("file2.txt", 1)
contents2 = f2.ReadAll
f2.Close
If (contents1 = contents2) Then
Same = true
Diff = false
End If