Home » Developer & Programmer » Forms » TEXT_IO.GET_FILE() (11G FORMS)
TEXT_IO.GET_FILE() [message #647447] Thu, 28 January 2016 02:24 Go to next message
shawaj
Messages: 89
Registered: January 2016
Member
HII
I HAVE WRITTEN SOME CODE TO READ DATA FROM A TEXT FILE BUT THERE IS SOME PROBLEM
FORMS DOES NOT RETURN ANY ERROR .CAN ANY ONE HELP ME,ITS GOES DIRECTLY AT END AFTER MESSAGE('70')

BEGIN
File_Handle:=TEXT_IO.FOPEN(V_FILE_NAME, 'R');
LOOP
MESSAGE('70');PAUSE;
text_io.get_line(file_handle,str_data);
END LOOP

END
Re: TEXT_IO.GET_FILE() [message #647449 is a reply to message #647447] Thu, 28 January 2016 04:43 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Welcome to the forum.
Please read and follow How to use [code] tags and make your code easier to read?

That's an infinite loop.
It needs an exit statement.
Also you appear to be doing nothing with the data read from the file. What's str_data exactly?
Re: TEXT_IO.GET_FILE() [message #647450 is a reply to message #647449] Thu, 28 January 2016 05:29 Go to previous messageGo to next message
JNagtzaam
Messages: 36
Registered: July 2015
Location: Alkmaar
Member

which file? v_file_name is not defined!
Re: TEXT_IO.GET_FILE() [message #647452 is a reply to message #647450] Thu, 28 January 2016 09:15 Go to previous message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
I assume the Declare section exists but has been left out of the post, otherwise it just wouldn't compile.
The OP does really need to post it
Previous Topic: help client_ole2 with arabic letters
Next Topic: demo.jar
Goto Forum:
  


Current Time: Fri Apr 19 02:50:55 CDT 2024