Opening Binary Stream Files (one record at a time) - IBM-ILE

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

Opening Binary Stream Files (one record at a time)

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:

Opening Binary Stream Files (one record at a time)

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.

Opening Binary Stream Files (one record at a time)

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

  • ios::app
  • ios::ate
  • ios::in
  • ios::out
  • ios::trunc

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM-ILE Topics