ARexx (21/77)

From:Rolf Max Rotvel
Date:8 Apr 2001 at 03:17:41
Subject:Re: One too much...

Hi Neil Bothwick. You wrote:

> > if open('tmp', file, 'r')
> > do forever
> > line = readln('tmp')
> > if line = '' then leave
> > /* do stuff */
> > end
> > call close('tmp')
> > end
> > else /* Error msg */
>
> > This only works on txt files without empty lines though.
>
> Use iterate instead of leave. It skips empty lines instead of exiting
> the loop.

:-) Using iterate in the above loop will make it loop forever.



Rolf Max Rotvel

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Secure your servers with 128-bit SSL encryption!
Grab your copy of VeriSign's FREE Guide,
"Securing Your Web site for Business." Get it now!
http://us.click.yahoo.com/4cW4jC/e.WCAA/bT0EAA/stAVlB/TM
---------------------------------------------------------------------_->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/