mrdocs::files::getFileText

Return the contents of a file as a string.

Synopsis

Declared in <mrdocs/Support/Path.hpp>

Expected<std::string>
getFileText(std::string_view pathName);

Return Value

The contents of the file, or an error if any occurred.

Parameters

Name

Description

pathName

The absolute or relative path to the file.

Created with MrDocs