Concatenates the specified number of newline characters (i.e., carriage returns) to the current line of an open file, or outputs them to the Interpreter. The default is 1, that is, if you specify no number (e.g., Text_IO.New_Line;) a single newline character is created.
PROCEDURE Text_IO.New_Line
(file file_type,
n PLS_INTEGER := 1);
PROCEDURE Text_IO.New_Line
(n PLS_INTEGER := 1);
Parameter | Description |
---|---|
file | A variable that specifies an open file. |
n | An integer. |
/*
** Write a string to the output file, then
** create a newline after it.
*/
Text_IO.Put(out_file, SYSDATE);
Text_IO.New_Line(out_file, 2);