Does the folder used exist and has the necessary permissions?
Can you share part of the code?
Thank you Bashar for the reply.
Following is the code.
TFile TEXT_IO.FILE_TYPE ;
Cursor C_emp is select * from tab where tname like 'OE%ORDER%' ;
TFile := TEXT_IO.FOpen( 'C:\Users\padma\Desktop\TAB.sif', 'W' ) ;
For c in C_emp Loop
LCLine := (c.TNAME) || ',' || (c.TABTYPE) ;
TEXT_IO.PUT_LINE( TFile, LCLine ) ;
MESSAGE('FILE GENERATED.....') ; MESSAGE('FILE GENERATED.....') ;
When I execute the same using Forms 6i run time locally, System generating the file successfully. But, when use the same code in APPS FORMs it is not. there are no exceptions raised.
In Forms 10g you cannot use it to read/write files from/to the desktop computer, only the forms server folders can be used.
You should use webutil instead.
I have found the WEBUTIL.pll in 10g forms folder. I have copied the same to $APPL_TOP/resource folder. But still while compiling getting the following error.
PL/SQL ERROR 201 at line 22, column 12
identifier 'CLIENT_TEXT_IO.FILE_TYPE' must be declared
PL/SQL ERROR 0 at line 22, column 12
PL/SQL ERROR 320 at line 25, column 3
the declaration of the type of this expression is incomplete or malformed
PL/SQL ERROR 0 at line 25, column 3