'Echo' text to an ascii text file.
|
![]() |
|
Summary |
The first macro shown below opens a new text file with the words 'WORK RECORD' on line 1. The second macro adds details , using the DOS echo command. |
Another use for the shell macro in this form can be to 'echo' text to an ascii text file. This could be useful if you need to keep track of, for instance, the time spent on a particular project and need to keep a record of your hours; or, more ambitiously, to send data from a Arbortext APP script to a database or billing system. |
The first macro shown below opens a new text file with the words 'WORK RECORD' on line 1. Note that any file of the same name will be overwritten: |
|
You could then add details, using the DOS echo command with two >> characters: |
|
The text file would now contain two lines as shown below: |
|
|
Document created on 08-Feb-2003 (revision 1)