Title: Message

Hi there.

I've had success with this.  Change the Output to Append.  It adds to the file instead of overwrites it.

 

Open “c:\testfile.txt” for Append as #2

 

 

Linda Ralston
Applications Analyst
Information Management
Peace Country Health
Grande Prairie, AB  Canada
780.538.7135

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ross Stolle
Sent: Monday, October 25, 2004 11:06 AM
To: '[EMAIL PROTECTED]'
Subject: [Talk] Appending to an output file

Hello all,

 

Whenever I do a script, I usually write the output to a file by using the commands…

 

First I open the field

 

Open “c:\testfile.txt” for Output as #2

 

Then at the end of each loop in my script, I write output like…

 

            Write #2, field 1, field 2, etc….

 

When the script is done, I have a nice output file to view.  I know everyone does this, but I was wondering if anyone has ever opened up an existing file and appended data to it.  So, I’m wanting to keep a data file that adds onto itself every day I run the script.  Instead of “Write #2” is there another command, like “Append”?  Thanks!

 

Ross Stolle

Integration Engineer

Avera McKennan Hospital

Sioux Falls, SD

 

 


____________________

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

Reply via email to