Functional Area : Printing, I/O and File Operations

The PrintStatement writes string content to text output files or standard output streams, which include out , err and log .

Files can be opened in binary mode by system function openFile(), openGZippedFile() and ZipArchive's openFile() method; or they can be opened in text mode by system functions openTextFile(), openGZippedTextFile() and ZipArchive's openTextFile() method. The system functions take a second parameter which can be 'r' (default) for reading, 'w' for writing and 'a' for appending. Each open file is an IODevice object. For text input files, use its readLine(), or simply use the LinesStatement to read line by line.

Related Syntax

Related System Functions

Related Object Types