How are text files read and written in forms ?

Showing Answers 1 - 7 of 7 Answers

Naidu. Kondisetty

  • Aug 22nd, 2005
 

Yes there is a facility UTL_FILE , using this package you can read and write data into text files. 
Or TEXT_IO package also there.

Subhash

  • Sep 1st, 2005
 

UTL_FILE is for backend procedures and this writes and reads from DB server , while TEXT_IO package is used in forms to read and write from Client machine

  Was this answer useful?  Yes

dmdevaraj

  • Apr 29th, 2008
 

To write

Declare
T_filename Text_Io.File_Type;
w_NewLine    varchar2(200);
Begin
T_filename := Text_Io.Fopen('c:test.txt', 'W');
Text_Io.Put_Line(T_filename,'this is test');
Text_Io.Fclose(T_filename);
End;

To Read
Begin
T_filename := Text_Io.Fopen('c:test.txt', 'R');
Text_IO.Get_Line(w_FileHandle, w_NewLine);
Text_Io.Fclose(T_filename);
End;

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions