# Load file from local disk Pass an absolute or relative file path to the Comparer constructor to load the source document from local disk, then use Add() for the target file in GroupDocs.Comparison for .NET. When the source file is located on the local disk, [GroupDocs.Comparison](https://products.groupdocs.com/comparison/net) allows you to load it using the [Comparer](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer) class constructor by specifying absolute or relative path. To load the target file located on the local disk, use the [Add](https://reference.groupdocs.com/comparison/net/groupdocs.comparison/comparer/methods/add/index) method. Specify absolute or relative path as parameter. The following code snippet shows how to load files from local disk: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using GroupDocs.Comparison; // ... using (Comparer comparer = new Comparer("source.docx")) { comparer.Add("target.docx"); comparer.Compare("result.docx"); } ``` {{< /tab >}} {{< /tabs >}} ## See also - [Load file from stream]({{< ref "comparison/net/advanced-usage/loading/load-file-from-stream.md" >}}) - [Load password-protected documents]({{< ref "comparison/net/advanced-usage/loading/load-password-protected-documents.md" >}}) - [Compare documents]({{< ref "comparison/net/comparison-basic/compare-documents.md" >}})