Const ForReading = 1, ForWriting = 2
Dim fso, MyFile,MyFile1
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.OpenTextFile(arg1, ForReading, True)
Set MyFile1 = fso.OpenTextFile(arg2, ForReading, True)
Flag=0
Dim tmp ,tmp1
tmp=0
tmp1=0
While MyFile.AtEndofLine<>true and MyFile1.atendofline <>true
tmp=MyFile.readline
tmp1=MyFile1.readline
res=StrComp (tmp,tmp1,0)
If res<>0 Then
Flag=1
End If
Wend
MyFile.Close
MyFile1.Close
If Flag=0 Then
Compare=true
else
Compare= false
End If