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

TEXT_IO.PUT built-in procedure

This procedure 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 (that is, carriage return) added.

Syntax


 PROCEDURE TEXT_IO.PUT
  (file file_type,
  item VARCHAR2);

 PROCEDURE TEXT_IO.PUT
  (item VARCHAR2);

 PROCEDURE TEXT_IO.PUT
  (itemDATE);

 PROCEDURE TEXT_IO.PUT
  (file file_type,
  item DATE);

 PROCEDURE TEXT_IO.PUT
  (filefile_type,
  item NUMBER);

 PROCEDURE TEXT_IO.PUT
  (item NUMBER);

 PROCEDURE TEXT_IO.PUT
  (file file_type,
  item PLS_INTEGER);

 PROCEDURE TEXT_IO.PUT
  (itemPLS_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...');

See also

About the TEXT_IO built-in package

TEXT_IO built-in package