[#fsbridge-fopen] = xref:fsbridge.adoc[fsbridge]::fopen :relfileprefix: ../ :mrdocs: Open a file, handling path encoding correctly across platforms. == Synopsis Declared in `<util/fs.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- FILE* fopen( xref:fs/path.adoc[fs::path] const& p, char const* mode); ---- == Return Value The opened FILE stream, or nullptr on failure. == Parameters [cols="1,4"] |=== | Name| Description | *p* | The path of the file to open. | *mode* | The C stdio mode string (for example "rb"). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#