BIO_S_FILE(3ssl) OpenSSL BIO_S_FILE(3ssl) BIO_s_file, BIO_new_file, BIO_new_fp, BIO_set_fp, BIO_get_fp, BIO_read_filename, BIO_write_filename, BIO_append_filename, BIO_rw_filename - BIO #include const BIO_METHOD *BIO_s_file(void); BIO *BIO_new_file(const char *filename, const char *mode); BIO *BIO_new_fp(FILE *stream, int flags); BIO_set_fp(BIO *b, FILE *fp, int flags); BIO_get_fp(BIO *b, FILE **fpp); int BIO_read_filename(BIO *b, char *name); int BIO_write_filename(BIO *b, char *name); int BIO_append_filename(BIO *b, char *name); int BIO_rw_filename(BIO *b, char *name); BIO_s_file() BIO. FILE stdio BIO /. BIO_read_ex() BIO_write_ex() . BIO_gets() BIO_puts() BIOs . BIO_flush() BIO fflush() . BIO_reset() fseek(stream, 0, 0). BIO_seek() ofs fseek(stream, ofs, 0). BIO_eof() feof(). BIO_CLOSE fclose() BIO. BIO_new_file() BIO mode mode stdio fopen(). BIO_CLOSE BIO . BIO_new_fp() BIO stream. : BIO_CLOSE BIO_NOCLOSE ( ) BIO_FP_TEXT ( : Win32). BIO_set_fp() fp BIO fp. flags BIO_new_fp() . BIO_get_fp() fp BIO . BIO_seek() offset . BIO_tell() . BIO_read_filename() BIO_write_filename() BIO_append_filename() BIO_rw_filename() BIO b name . stdout stdin stderr BIO_NOCLOSE. BIO stdio stdio BIO . Windows BIO_new_files UTF-8. UTF-8. BIO_s_file() BIO . BIO_new_file() BIO_new_fp() BIO NULL . BIO_set_fp() BIO_get_fp() 1 <=0 ( 0 ). BIO_seek() 0 . BIO_tell() . BIO_read_filename() BIO_write_filename() BIO_append_filename() BIO_rw_filename() 1 <=0 . . BIO "hello world": BIO *bio_out; bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); BIO_printf(bio_out, "Hello World\n"); : BIO *bio_out; bio_out = BIO_new(BIO_s_file()); if (bio_out == NULL) /* Error */ if (BIO_set_fp(bio_out, stdout, BIO_NOCLOSE) <= 0) /* Error */ BIO_printf(bio_out, "Hello World\n"); : BIO *out; out = BIO_new_file("filename.txt", "w"); if (!out) /* Error */ BIO_printf(out, "Hello World\n"); BIO_free(out); : BIO *out; out = BIO_new(BIO_s_file()); if (out == NULL) /* Error */ if (BIO_write_filename(out, "filename.txt") <= 0) /* Error */ BIO_printf(out, "Hello World\n"); BIO_free(out); BIO_reset() BIO_seek() fseek() . fseek() 0 -1 BIO 1 . BIO_seek(3), BIO_tell(3), BIO_reset(3), BIO_flush(3), BIO_read_ex(3), BIO_write_ex(3), BIO_puts(3), BIO_gets(3), BIO_printf(3), BIO_set_close(3), BIO_get_close(3) 2000-2020 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 BIO_S_FILE(3ssl)