fsbridge::fopen

Open a file, handling path encoding correctly across platforms.

Synopsis

Declared in <util/fs.h>

FILE*
fopen(
    fs::path const& p,
    char const* mode);

Return Value

The opened FILE stream, or nullptr on failure.

Parameters

NameDescription
pThe path of the file to open.
modeThe C stdio mode string (for example "rb").