I am using a cursor to fetch value into a variable, then write this variable to a file.
QUESTION:
*********
Everytime the loop is executed, the variable v_select is written to a new line in the file.
Is there a way to ignore line feed and write the entire output in ONE SINGLE line?
CODE:
******************************
BEGIN
id := UTL_FILE.FOPEN('/mydir','myfile,'a');
UTL_FILE.PUT_LINE(id,'myfile');
LOOP
FETCH p_Cur INTO v_select;
EXIT WHEN p_Cur%NOTFOUND;
UTL_FILE.PUTF(id,v_select);
END LOOP;
UTL_FILE.FCLOSE(id);
CLOSE p_Cur;
END;
*******************************
QUESTION:
*********
Everytime the loop is executed, the variable v_select is written to a new line in the file.
Is there a way to ignore line feed and write the entire output in ONE SINGLE line?
CODE:
******************************
BEGIN
id := UTL_FILE.FOPEN('/mydir','myfile,'a');
UTL_FILE.PUT_LINE(id,'myfile');
LOOP
FETCH p_Cur INTO v_select;
EXIT WHEN p_Cur%NOTFOUND;
UTL_FILE.PUTF(id,v_select);
END LOOP;
UTL_FILE.FCLOSE(id);
CLOSE p_Cur;
END;
*******************************