BIO_new_file

Open filename and wrap it in a BIO_s_file() BIO.

Synopsis

Declared in <openssl/bio.h>

BIO*
BIO_new_file(
    char const* filename,
    char const* mode);

Return Value

New file BIO, or NULL on error.

Parameters

NameDescription
filenamePath to open.
modestdio-style mode string (for example "r" or "w").