Home » Developer & Programmer » Forms » Read Text File from Forms 6i
Read Text File from Forms 6i [message #85695] Wed, 21 July 2004 21:24 Go to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Hi all

I am using Forms 6i. I am trying to read data form a text file .

However in certain cases sometimes the text file is not available.

Then it gives some Error.

This error I want to catch.

E.g

My Command:

 V_FILE = 'C:README.TXT';

 NEW_FILE := TEXT_IO.FOPEN(V_FILE_NAME,'r'); 

Now when there is no file by this name then oracle will show some error.

I want to captur this exception and show my user friendly error as "FILE NOT FOUND  IN LOCATION "

How can i do that .....

Regards

Atul p
Re: Read Text File from Forms 6i [message #85725 is a reply to message #85695] Sun, 25 July 2004 03:50 Go to previous message
ala
Messages: 17
Registered: May 2004
Junior Member
try this

begin
. .
.
.
EXCEPTION
WHEN OTHERS THEN message('FILE NOT FOUND IN LOCATION ');
raise form_trigger_failure;
end;
Previous Topic: userexit in forms
Next Topic: Order by Desc
Goto Forum:
  


Current Time: Thu Sep 05 19:54:25 CDT 2024