Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> TEXT_IO Help Debug!
/*
Sebastian Dos Santos
This procedure suppose to open a text file and insert into the buffer
one line at a time,
according to the line size passed. Then prints the line and gets a new
line until the
text is exhausted.
I have been reading about this powerfull function and would like to try
an elegant
way of writting this procedure. I would love to know more about this
"TEXT_IO", can you help?
*/
PROCEDURE FORMAT_REPORT
(P_TEXT IN VARCHAR2, P_COLUMN_WIDTH IN NUMBER, P_BORDER_WIDTH IN NUMBER, P_LINES_PER_PAGE IN NUMBER, P_STATUS OUT VARCHAR2) IS in_file TEXT_IO.FILE_TYPE ;
TEXT_IO.GET_LINE(in_file, linebuf); TEXT_IO.PUT(LPAD(linebuf,5, ' ')); TEXT_IO.NEW_LINE;