home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
zow314.exe
/
INSTALL.FIL
/
SCRIPT
/
BINSEND.ZRX
next >
Wrap
Text File
|
1998-09-30
|
452b
|
23 lines
/*REXX*/
/* this script sends all characters from a file
(including control characters and the NUL character
to the current device */
filename = "foobar.dat"
do forever
c= charin(filename)
if stream(filename, "s")\="READY" then leave
/* Control Characters 00 - 1F */
if c2d(c)<32 then c= "^"||d2c(c2d(c)+64)
else
/* Quote ^ character */
if c="^" then c= "^^"
call ZocWrite c
end
call stream filename, "c", "close"