Home » Developer & Programmer » Forms » urgent help on text_io package
urgent help on text_io package [message #164197] Wed, 22 March 2006 04:55 Go to next message
milindshitole
Messages: 1
Registered: March 2006
Junior Member
Request your immediate help on following.

In our project we are using TEXT_IO package to read a text file into D2K forms 6i. If the form is run from local machine (WinNT environment), it is able to read the text file properly using following syntax
lv_config_file := TEXT_IO.FOPEN('C:\WINNT\MT_CONFIG.INI','r');

But when the same is deployed on application server (Unix Environment), it is not able to read the text file. All the forms (.fmx) and the text file are kept under same folder. There is no issue when you give a call from one form to other,but it does not work when you try to read the text file using following syntax
lv_config_file := TEXT_IO.FOPEN('MT_CONFIG.INI','r');

Can somebody help with the above ........
1) Do we need to set any path on the application server?
2) Do we need to keep this file somewhere else?
3) Do we need to provide the full path of the txt file? if yes how? say our current folder is /app/sourcecode/myapp/bin.
4) Any other option.

Thanks in advance.
Re: urgent help on text_io package [message #164282 is a reply to message #164197] Wed, 22 March 2006 14:54 Go to previous messageGo to next message
RJ.Zijlstra
Messages: 104
Registered: December 2005
Location: Netherlands - IJmuiden
Senior Member
My Friend,

Please read the docs...

io_text is ALLWAYS based on the local machine, wherever the fmx might be running.

use UTL_FILE ( after studying the docs...); take care that the location your files are in, is mentioned in initora parameter utl_file_dir and there will be no more problems.

HTH,

Regards,

Rob Zijlstra
Re: urgent help on text_io package [message #164535 is a reply to message #164197] Thu, 23 March 2006 22:13 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Do you want to read the file from the Application Server or from the user PC? If the latter, then look at web_util (webutil), and change the 'text_io' commands to 'client_text_io'. Search this forum for 'client_text_io'.

David
Previous Topic: dynamic lov
Next Topic: Selecting sequence.nextval "ORA-00600" Error.
Goto Forum:
  


Current Time: Fri Sep 20 04:26:30 CDT 2024