 using fseek(stream, ofs, 0).</p>

<p>BIO_eof() calls feof().</p>

<p>Setting the BIO_CLOSE flag calls fclose() on the stream when the BIO is freed.</p>

<p>BIO_new_file() creates a new file BIO with mode <b>mode</b> the meaning of <b>mode</b> is the same as the stdio function fopen(). The BIO_CLOSE flag is set on the returned BIO.</p>

<p>BIO_new_fp() creates a file BIO wrapping <b>stream</b>. Flags can be: BIO_CLOSE, BIO_NOCLOSE (the close flag) BIO_FP_TEXT (sets the underlying stream to text mode, defaul