Created
October 28, 2022 06:51
-
-
Save conholdate-docs-gists/9700cac3752f7cc231718ba340091976 to your computer and use it in GitHub Desktop.
compare documents | https://docs.conholdate.com/java/compare-document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Comparer comparer = new Comparer(File.OpenRead("source.docx"))) | |
{ | |
comparer.Add(File.OpenRead("target.docx")); | |
comparer.Compare(File.Create("result.docx")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Comparer comparer = new Comparer("source.docx")) | |
{ | |
comparer.Add("target.docx"); | |
comparer.Compare("result.docx"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment