Operator Reference
fnew_line (Operator)
fnew_line — Write a line break and clear the output buffer.
Signature
fnew_line( : : 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 '\r\n' (carriage return + line feed) is used as the standard line break, under Linux just '\n' (line feed).
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)
fwrite_string(FileHandle,'Good Morning') fnew_line(FileHandle)
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.
Possible Predecessors
See also
Module
Foundation