Home » Developer & Programmer » Forms » How to Know Operating System Current Path in oracle 10g forms ? (Oracle Forms)
How to Know Operating System Current Path in oracle 10g forms ? [message #503690] Tue, 19 April 2011 01:01 Go to next message
hatemyoussef
Messages: 2
Registered: April 2011
Location: egypt
Junior Member
How to Know Operating System Current Path in oracle 10g forms ?

Thanks ?

Thanks
Re: How to Know Operating System Current Path in oracle 10g forms ? [message #503693 is a reply to message #503690] Tue, 19 April 2011 01:05 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What do you mean by "operating system current path"? Current of what?
Re: How to Know Operating System Current Path in oracle 10g forms ? [message #503695 is a reply to message #503693] Tue, 19 April 2011 01:13 Go to previous messageGo to next message
hatemyoussef
Messages: 2
Registered: April 2011
Location: egypt
Junior Member
I use text_io to create a txt file but i don't know where it is created ?

out_file := TEXT_IO.FOPEN( :P_FILE_NAME,'W');
Re: How to Know Operating System Current Path in oracle 10g forms ? [message #503714 is a reply to message #503695] Tue, 19 April 2011 02:04 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
On the Application Server.

What does :P_FILE_NAME contain? It *could* contain directory name as well (i.e. the whole path to the file), not only file name.
Re: How to Know Operating System Current Path in oracle 10g forms ? [message #503751 is a reply to message #503714] Tue, 19 April 2011 07:51 Go to previous message
ranamirfan
Messages: 535
Registered: January 2006
Location: Pakistan / Saudi Arabia
Senior Member

Dear,
File Path Should be like this as a sample.
function AfterPForm return boolean is
  Out_file  text_io.file_type;
 BEGIN
  Out_file :=text_io.fopen ('C:\TextFile'||'.TXT', 'w');
  Text_io.fclose (out_file);
  Return(TRUE);

END;



Regards,
Irfan
Previous Topic: ceiling
Next Topic: Migration Of Oracle form 10g to 6i
Goto Forum:
  


Current Time: Tue Sep 17 03:14:26 CDT 2024