prepend to a file [message #87149] |
Fri, 10 December 2004 06:58 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
rabih nasser
Messages: 1 Registered: December 2004
|
Junior Member |
|
|
hello, i would like to know if it possible in oracle to prepend to
a file, meaning to add a line at the beginning of the header of a text file,with out using temp file .
|
|
|
Re: prepend to a file [message #87162 is a reply to message #87149] |
Fri, 10 December 2004 17:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
mai hoo na
Messages: 1 Registered: December 2004
|
Junior Member |
|
|
u can use append mode in text_io.ofile
may be this will help u
FUNCTION Text_IO.Fopen
(spec VARCHAR2,
filemode VARCHAR2)
RETURN Text_IO.File_Type;
Parameters
spec A case-insensitive string corresponding to a file's name.
filemode A single case-insensitive character that specifies the mode in which to open the file, and consists of one of the following characters:
R Open the file for reading only.
W Open the file for reading and writing after deleting all existing lines in the file.
A Open the file for reading and writing without deleting existing lines (i.e., appending).
Returns A handle to the specified file.
|
|
|