Home » Developer & Programmer » Forms » Reading and Writing data in a text file. (oracle 10g, win xp)
Reading and Writing data in a text file. [message #497998] Tue, 08 March 2011 02:28 Go to next message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
Dear All

I need to read data from text file(located on application or db server or on some other server, however path is known to me.) and then append some data in it.

data will be read and written on daily basis so
i want to clear all data on date change.

can some one help me out.

Regards.
Re: Reading and Writing data in a text file. [message #498014 is a reply to message #497998] Tue, 08 March 2011 04:20 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
How can I read/write OS files from Forms?
Re: Reading and Writing data in a text file. [message #498016 is a reply to message #498014] Tue, 08 March 2011 04:36 Go to previous messageGo to next message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
Dear Sir

Thanks for Replying me.

I have created a form in forms 6i(attached), it is reading from one file and writing in an other.

but infact it is replacing the previous text where as i want to append.

e.g. if i write "First Text" in input and run this form , it puts the text in output file. then i change the text to "Second Text", the "First Text" is replaced with "Second Text"
however I want to keep "First Text" and want to append "Second Text" in it.


Regards.
Re: Reading and Writing data in a text file. [message #498017 is a reply to message #498016] Tue, 08 March 2011 04:38 Go to previous message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
Thanks to all for now.

simply pass the 'a' instead of 'w'.

it has given the desired results.

thanks again
Previous Topic: Post Query Trigger
Next Topic: run sql file from from forms
Goto Forum:
  


Current Time: Tue Sep 17 16:23:13 CDT 2024