fnew_line🔗
Short description🔗
fnew_line — Write a line break and clear the output buffer.
Signature🔗
fnew_line( file FileHandle )
Description🔗
The operator fnew_line writes a line break into the output
file defined by the handle FileHandle.
The input file must have been opened with open_file in text format.
The call of fnew_line also empties possibly retained data from the
output buffer into the file (see fwrite_string and
set_system(::'flush_file', <boolean-value>:)).
Which characters are written as line break depends on the operating system: under Windows the sequence ‘rn‘ (carriage return + line feed) is used as the standard line break, under Linux just ‘n‘ (line feed).
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
FileHandle (input_control) file → (handle)
File handle.
Example🔗
(HDevelop)
Result🔗
If an output file is open and it can be written to the file,
the operator fnew_line
returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.
Combinations with other operators🔗
Module🔗
Foundation