home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
scrmod.zip
/
WRITELIN
< prev
next >
Wrap
Text File
|
1991-08-28
|
521b
|
23 lines
> watch(off)
> openold('\config.sys',rhandle)
> delete('\write.000')
> opennew('\write.000',whandle)
> count = 0
> loop:
> text = readline(rhandle)
> if (getlength(text) == 1) && (chrtoval(text) == 26)
> close(rhandle)
> close(whandle)
> message('Write operation complete')
> message('Press any key to terminate script')
> timeout = 0
> watch(on)
> wait()
> end
> endif
> writeline(whandle,text)
> count = count + 1
> message ('Write record count = ' + valtostr(count))
> goto loop