home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
add2
/
tm110_1.zip
/
ASCII-DL.SCR
next >
Wrap
Text File
|
1989-04-06
|
1KB
|
62 lines
; ASCII download protocol
; if filename is "", you will be asked to input the filename
; if filename is not "", the specified file will be sent
; e.g. if filename="msg.", then the file "msg." will be received
filename = ""
TRUE=1 ; boolean values
FALSE=0
AddLF = TRUE ; TRUE to translate CR as CR-LF
RemoteEcho = FALSE ; TRUE to echo recieved to remote system
if filename="" ; input filename if needed
print
print "*** Which file: ",
input filename
clear key
print
endif
create filename
if not success
print "*** Cannot create file"
stop
endif
print "*** Start receiving"
repeat
inputch ch
if success and ch="^["
print
print "*** Abort receiving"
print
exit
endif
getch ch
if success
write ch,
if RemoteEcho
put ch,
endif
if ch="^M" and AddLF
write "^J",
if RemoteEcho
put "^J",
endif
endif
endif
if not connected
print
print "*** Carrier lost"
print
exit
endif
until success and ch="^Z"
close
clear key