ILE C/C++ Programmer's Guide

Opening Binary Stream Files (record at a time)

To open an iSeries Data Management file as a binary stream file for record-at-a-time processing, use fopen() with any of the following modes:

Notes:

  1. The number of files that can be simultaneously opened by fopen() depends on the size of the system storage available.

  2. The fopen() open modes also apply to freopen().

  3. If the binary stream file contains deleted records, the deleted records are skipped by the binary stream I/O functions.

  4. The file must be opened with the type set to record.

The valid keyword parameters are:

If you specify a mode or keyword parameter that is not valid on fopen() function, errno is set to EBADMODE.

Only fread() and fwrite() can be used for binary stream files opened for record-at-a-time processing.

To open an iSeries Data Management file as a binary stream file for record-at-a-time processing, use theopen() function with ios::binaryas well as any of the following modes:


[ Top of Page | Previous Page | Next Page | Table of Contents ]