From: | Neil Bothwick |
Date: | 7 Apr 2001 at 23:06:14 |
Subject: | Re: One too much... |
Rolf Max Rotvel said,
> I usually use:
> 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.
Neil
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Do you have 128-bit SSL encryption server security?
Get VeriSign's FREE Guide, "Securing Your
Web Site for Business." Get it now!
http://us.click.yahoo.com/2cW4jC/c.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/