# Load file from local disk This article explains how to load PDF, Word, Excel, PowerPoint documents from local disk when using GroupDocs.Comparison for Java. When the source file is located on the local disk, [GroupDocs.Comparison](https://products.groupdocs.com/comparison/java) allows you to load it using the [Comparer](https://reference.groupdocs.com/comparison/java/com.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/java/com.groupdocs.comparison/comparer/#add-java.lang.String-) method. Specify absolute or relative path as parameter. The following code snippet shows how to load files from local disk: {{< tabs "example1">}} {{< tab "Java" >}} ```java import com.groupdocs.comparison.Comparer; import java.nio.file.Path; // ... try (Comparer comparer = new Comparer("source.pdf")) { comparer.add("target.pdf"); final Path resultPath = comparer.compare("result.pdf"); } ``` {{< /tab >}} {{< /tabs >}}