home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
comms
/
other
/
rxsocket
/
examples
/
hserv
/
main
/
counter.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-09
|
251b
|
18 lines
/* */
parse arg file .
n=0
if ~Open(in,file,'R') then
if ~Open(in,file,'W') then return 1
else call writech(in,0)
else n=ReadLn(in)
call close(in)
if ~Datatype(n,'N') then n=0
if ~Open(in,file,'W') then return 1
n=n+1
call WriteCH(in,n)
return n