in my application i have to compare two file.so i tried doing that using file compare
the message returned is "GUI checkpoint mismatch foun".
But i am not able to open the file save using the file open function.
how can i view the difference between these two files?
plese let me know.
I think the above code indicates that you need to refer to your TSL Online help for everything you need to know about how to use file_compare();. It is right at your fingertips and the intent of it is to help you through situations like this. Why not use it? [img]images/icons/smile.gif[/img]
The last paramater does not create a file which stores the difference. It creates two files - save.a , and save.b , inside the result folder, which are copies of the files being compared. This is because the windiff utility operates in realtime, so changes in the files which were compared won't change how the results are viewed. The following code opens save.a and save.b in notepad:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">file_compare=("C:\\CLEC_WR\\data\ \file1","C:\\CLEC_WR\\data\\file2", "save"
elements = split(getvar("testname",array,"\\"
system("notepad " & getvar("result" & "\\" array[elements] & "\\save.a"
system("notepad " & getvar("result" & "\\" array[elements] & "\\save.b"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">