GroupDocs.Markdown provides two ways to load a file from a local disk: the static one-liner API and the instance-based API.
Using static method
The simplest approach – pass a file path and get the Markdown string back:
importcom.groupdocs.markdown.*;publicclassLoadDiskStatic{publicstaticvoidmain(String[]args){// Convert a local file to Markdown in one call
Stringmarkdown=MarkdownConverter.toMarkdown("business-plan.docx");// Or save the result directly to a file
MarkdownConverter.toFile("business-plan.docx","load-disk-static.md");}}
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **Table of Contents**
FY2026 Strategic Plan 1
[TRUNCATED]
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **Table of Contents**
FY2026 Strategic Plan 1
[TRUNCATED]