Home » Developer & Programmer » Forms » plz,correct this program.
plz,correct this program. [message #122409] Mon, 06 June 2005 07:20 Go to next message
mousumi_r
Messages: 3
Registered: May 2005
Location: india
Junior Member
plz,correct this program. itis not taking file.
  • Attachment: C1FEM060.fmb
    (Size: 48.00KB, Downloaded 1109 times)
Re: plz,correct this program. [message #122440 is a reply to message #122409] Mon, 06 June 2005 09:37 Go to previous messageGo to next message
Leo007
Messages: 15
Registered: June 2005
Junior Member
hi mousumi_r,

here one example:

Declare
in_file text_io.file_type;
l_line_buffer VARCHAR2(100);
AMD_REC_YRMTH number(6);
AMD_REC_DEPT varchar2(4);
.
.
.
BEGIN
in_file := text_io.fopen('C:\AMDF.TXT','r');
BEGIN
LOOP
text_io.get_line(in_file, l_line_buffer);
AMD_REC_YRMTH := to_number(substr(l_line_buffer,1,6));
AMD_REC_DEPT := substr(l_line_buffer,7,4);
.
.
.
END LOOP;
EXCEPTION WHEN NO_DATA_FOUND THEN
EXIT;
END;
END;

-----------

I hope I could help you.
Re: plz,correct this program. [message #122448 is a reply to message #122440] Mon, 06 June 2005 09:58 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Don't forget to close the file afterwards!

mousumi_r, read about text_io in the Forms help.

MHE
Previous Topic: Custom.pll Used in Oracle 11i Apps
Next Topic: menu problem
Goto Forum:
  


Current Time: Fri Sep 20 10:23:29 CDT 2024