[#BIO_new_file]
= BIO&lowbar;new&lowbar;file
:mrdocs:

Open `filename` and wrap it in a BIO&lowbar;s&lowbar;file() BIO&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIO.adoc[BIO]*
BIO&lowbar;new&lowbar;file(
    char const* filename,
    char const* mode);
----

== Return Value

New file BIO, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *filename*
| Path to open&period;
| *mode*
| stdio&hyphen;style mode string (for example &quot;r&quot; or &quot;w&quot;)&period;
|===


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