If you write data to a binary stream processed one character at a time, and the size of the data is greater than the current record length, then the excess data is written to the current record up to its record size and the remaining data is written to the next record in the file.
Figure 90. Writing to a Binary Stream File One Character at a Time
Example:
The following example illustrates how to write to a binary stream by character.
Figure 91. ILE C Source to Write Characters to a Binary Stream File
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.