Appending data to file by using utl_file
I am using oracle 8.1.7 .
I have written a stored procedure which writes data in to a file by using utl_file.
now i want to append some data at the end of the first line in the same file. How can we do it?. Can we move the file pointer to whatever the position just we do it in C (like by fseek()) ?
thank u
Re: Appending data to file by using utl_file
Quote:
Originally posted by rk0000
I am using oracle 8.1.7 .
I have written a stored procedure which writes data in to a file by using utl_file.
now i want to append some data at the end of the first line in the same file. How can we do it?.
AFAIK you can't do that by UTL_FILE, at least not in 8.1.7. It is possible in 9i, by reading the original file, storing changed contents in new file and finaly by renaming new file to original file with overwrite option (UTL_FILE.FRENAME(overwrite=>TRUE, ....)).