How do i compare two doc files to check whether their are identical or not. If not i want the location where the difference is. IS there any API which can compare two files?

Thanks
Kais