Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

New line issue in textfile while notepad open

BoopathiLNov 26 2013 — edited Nov 27 2013

Hi to all,

     Created one text file using procedure and moved to FTP folder. Text file opened thru IE its working fine. Copied into local machine and open in notepad its not working i.e, appeared in continuous line. Wrap text also checked its correct only

Code :

Declare

Begin

 

    v_File_Name := utl_file.fopen ( Dir_Obj_Name, File_Name, 'W' );

 

    For Cur In (Select 'One' A1, 'Two' A2, 'Three' A3 From Dual

                Union

                Select 'Four' A1, 'Five' A2, 'Six' A3 From Dual

            )             

    Loop             

        v_line_Text : = Cur.A1 || ' ' || Cur.A2 || ' ' || Cur.A3 || ' ' || Chr(13);

        utl_file.put_line(v_File_Name , v_line_Text, True );

    End Loop; 

 

    utl_file.fclose(v_File_Name); 

End; 

Excepted Ouput

One Two Three

Four Five Six

This post has been answered by BluShadow on Nov 26 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2013
Added on Nov 26 2013
8 comments
1,685 views