Load file from local disk

On this page

When the source file is located on the local disk, GroupDocs.Comparison allows you to load it using the Comparer class constructor by specifying absolute or relative path. To load the target file located on the local disk, use the Add method. Specify absolute or relative path as parameter.

The following code snippet shows how to load files from local disk:

string sourcePath = "source.docx";
using (Comparer comparer = new Comparer(sourcePath))
{
    string targetPath = "target.docx";
    comparer.Add("targetPath");
    comparer.Compare("result.docx");
}

On this page