A script-enabled browser is required for this page to function properly.

TEXT_IO.Put

Description

Concatenates the supplied data to the current line of an open file, or outputs it to the Interpreter. Notice that there are several Text_IO.Put procedures, which accept VARCHAR2, DATE, NUMBER, and PLS_INTEGER values for item. All of the procedures (except VARCHAR2) convert the supplied data to a character string. No newline character (i.e., carriage return) Added.

Syntax


PROCEDURE Text_IO.Put
   (file file_type,
    item VARCHAR2);

PROCEDURE Text_IO.Put
   (item VARCHAR2);

PROCEDURE Text_IO.Put
   (item DATE);

PROCEDURE Text_IO.Put
   (file file_type,
    item DATE);

PROCEDURE Text_IO.Put
   (file file_type,
    item NUMBER);

PROCEDURE Text_IO.Put
   (item NUMBER);

PROCEDURE Text_IO.Put
   (file file_type,
    item PLS_INTEGER);

PROCEDURE Text_IO.Put
   (item PLS_INTEGER);

Parameters

Parameter Description
file A variable that specifies an open file.
item A variable to be used as a buffer.

Example


 /*
** Write a line to a specified output file, create
** a newline, then write another line to the output
** file.
*/
Text_IO.Put(out_file, SYSDATE);
Text_IO.New_Line(out_file);
Text_IO.Put('Processing ends...');