home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
assist11.zip
/
ADD2FILE.CMD
next >
Wrap
OS/2 REXX Batch file
|
1999-04-25
|
673b
|
36 lines
/****************************************/
/* Assistant/2 (c) 1998 Hinnerk Becker */
/****************************************/
/* This macro adds the selected text to a file */
/****************************************/
file = ARG(1)
/* Read text from STDIN */
text = ''
count = CHARS()
DO WHILE count > 0
c = CHARIN(STDIN)
text = text||c
count = CHARS()
END
/* Write text to file */
dt = DATE()' - 'TIME()
line = "***************************************************************************"
res = LINEOUT(file,line);
res = LINEOUT(file,dt);
res = LINEOUT(file,line);
res = LINEOUT(file,text)
call beep 262,250
EXIT