trying to figure out how to write a procedure that will write output to a file. Ran this in sqlplus but it errors...
declare
f utl_file.file_type;
s varchar2(50) := 'this is a test record';
begin
f := utl_file.fopen('EXAMPLEDATA','c:\example1.txt','W');
utl_file.put_line(f,s);
utl_file.fclose(f);
end;
What am I doing wrong?
declare
f utl_file.file_type;
s varchar2(50) := 'this is a test record';
begin
f := utl_file.fopen('EXAMPLEDATA','c:\example1.txt','W');
utl_file.put_line(f,s);
utl_file.fclose(f);
end;
What am I doing wrong?