This installment of “APIs by Example” offers sample RPG code showing how to read a text line from an IFS file until a line terminator is encountered, and also how to write a line to an IFS file.
The sample code consists of three RPG IV programs that create and read three text files in QOpenSys to show how the APIs work.