Forum Discussion

shilpawdhw's avatar
shilpawdhw
Occasional Contributor
8 years ago

Need help to compare .rtf files

I am working with desktop application where in application generated word doc with .rtf extension . It has some highlighted text , some words with hyperling and can say few images. I want to compare two word file (.rtf) word to word and check if highlights is applied . words with hyperlink exist . Also I am looking to compare word document line by line. Currently I can only check , two documents are similar or different. I cannot check what exactly is the difference. Can any one help me with this. TIA

    • shilpawdhw's avatar
      shilpawdhw
      Occasional Contributor

      Hey I tried this but result is only for comparison . I want in in detail what if files are different , what are the differences.

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Since they are .rtf files, you could do a straight file comparison using the Files object.  See if that works for you.

         

        Another option is to find a third-party file comparison utility and execute it via TestComplete.