[#fsbridge-fopen]
= xref:fsbridge.adoc[fsbridge]::fopen
:relfileprefix: ../
:mrdocs:

Open a file, handling path encoding correctly across platforms&period;

== Synopsis

Declared in `&lt;util&sol;fs&period;h&gt;`

[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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The path of the file to open&period;
| *mode*
| The C stdio mode string (for example &quot;rb&quot;)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
