"jyoti" <mu*************@hotmail.com> wrote in message news:<af****************************@phx.gbl>...
I am new in asp. I have two html files. I like to write
code to compare those two files. I like to show the
difference as highlighted area.
Example: File 1 contains:
<html><body> Compare Test</body></html>
File 2 contains:
<html><body> Compare Test modyfied</body></html>
I like to make either the word "modyfied" highlighted or
the whole line highlighted on File2.
I appreciate your help. Code sample will be helpful.
Thanks
Jyoti
Writing diff programs is something that's done before quite a few
times. Perhaps you should try and find some code of another
implementation instead of writing your own from scratch, which will
definatly save you a lot of time.
Perhaps you can even use an external diff tool like WinDiff, which you
can run from the commandine and export the results as a textfile. That
way you only have to parse the output file itself, and not bother
doing the actual comparing yourself.