TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: EDDY THILLEMAN
from: MIKE RUSKAI
date: 1999-10-03 17:23:00
subject: hstart wget?

Some senseless babbling from Eddy Thilleman to Mike Ruskai
on 10-01-99  10:08 about hstart wget?...

 ET> Hello Mike,

 ET> 29 Sep 99 13:08, MIKE RUSKAI wrote to EDDY THILLEMAN:
 
 MR> It's 'READY:', not 'READY'.  Though in PC-DOS 7's REXX, it is 'READY'.
 MR> So, you might want to do this:
 
 MR> if left(check,5) != 'READY' then do

 ET> In my latest version, I do

 ET> if pos( 'READY', check ) = 1 then        /* if we opened file */

 ET> the same condition with the do while
 
 ET>> do while stream( InFile, 'state' ) = 'READY'
 
 MR> lines() or chars() would be better here.

 ET> why?

Because I don't see why a stream would fail to be ready simply because the
read/write pointer is at the end.  The lines() function returns 1 if
there's at least one line-end in the file (with the lines() method of the
stream class in OREXX, it actually counts the lines in the file).  The
chars() function returns the character count remaining ahead of the
read/write pointer.

Mike Ruskai
thannymeister@yahoo.com


... As I feared, you have no sense of humor.

___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
45
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.