BTW: As the task itself really has nothing to do with CF, you might have better luck looking for a java library or .exe you could call from within ColdFusion. Also, I suspect there will be more support for the newer format .docx, than the old binary one.
It all depends what you are trying to do. There are already applications like Beyond Compare 2 which will compare two files (*.html;*.htm;*.xml;*.php;*.asp;*.cfc;*.cfm;*.java etc etc)
Or, you can implement yours by reading two files, creating an array of each line for each file and comparing each line to another.
I have never heard of that program. Does it actually understand MS Word files, or is it just your basic line by line text comparison program that compares the low level xml of the newer files?
The built-in File Viewer is designed to handle text files only. It cannot directly compare formatted documents such as MS Word, Excel or PDF files. These have complex, proprietary formats that the program doesn't understand. However, you can configure the File Comparison Rules to call an external conversion tool to extract plain text from documents before comparison. See our website for add-on rules that you can download:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.