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:
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:
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.