ILE C/C++ Programmer's Guide

Updating Text Stream Files

During an update operation to a text stream file, if the number of characters being written to the file exceeds the record length of the file, trailing characters in the record are truncated and errno is set to ETRUNC.

If the data being written to the text stream file is shorter than the record length being updated, and the last character of the data being written is a new-line character, then the record is updated and the remainder of the record is filled with blank characters. If the last character of the data being written is not a new-line character, the record is updated and the remainder of the record remains unchanged.


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