Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UTL_FILE

Status
Not open for further replies.

deulyd

Programmer
Oct 17, 2001
106
CA
I have problem using the UTL_FILE package. I just want to store text information in an external file.

It works properly with UTL_FILE.PUT_LINE.
but not with UTL_FILE.PUT() and UTL_FILE.PUTF().

code doesn't give any error, it creates my file but it doesn't write anything in the file.

please help me!

here is my code :

_____________________________________________
BEGIN

str_ImageFile := 'temp.jpg';

outfile := utl_file.fopen('D:\TEMP\',str_ImageFile ,'w');

tempstring := 'THIS IS A TEST';

--UTL_FILE.PUT(outfile, tempstring);
--UTL_FILE.PUTF(outfile, '%s', tempstring);
UTL_FILE.PUT_LINE(outfile, tempstring);

UTL_FILE.FCLOSE_ALL();

END;
______________________________________________
 

You can only use UTL_FILE.PUTF procedure to write formatted text to a file.

I your case, i suggest you use FTP instead.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top