During a write operation, a new-line character in the buffer causes the remainder of the record written to the text stream file to be padded with blank characters (hexadecimal value 0x40). The new-line character itself is discarded.
Figure 85. Writing to a Text Stream File
If the number of characters being written in the buffer exceeds the record length of the file, the data written to the file is truncated, and errno is set to ETRUNC.
Example:
The following example illustrates how to write to a text stream file.
Figure 86. ILE C Source to Write Characters to a Text Stream File
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.