ARexx (81/84)

From:Me
Date:31 Mar 2001 at 17:42:55
Subject:Re: One too much...

Hello Andreas

On 31-Mar-01, you wrote:

DO b = 1 WHILE ~EOF(f)
> line.i = ReadLN(f)
> num = WriteLN(f3,'<LI><A HREF="'||line.i||'">'||line.i||'</A></LI>')
> END
>

> What can I do to avoid the empty list item ? Do I have to omit the
> WriteLN() and start a seperate loop like:
>

Try this:

call open('f3',"ram:f3",'w')
if open('f',"ram:f",'r') then DO b = 1 until EOF('f')
if line.b ~= "" then line.b = ReadLN('f')
num = WriteLN('f3','<LI><A HREF="'||line.b||'">'||line.b||'<A><LI>')
say line.b
END
call close('f3')
if open('f3',"ram:f3",'r') then do j = 1 to b
line.j = readln('f3')
say line.j "line" j
end
call close('f')
call close('f3')

I hope it's what you need.
Regards,



Gmaia aka MrDoc

------------------------ 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/KVNB7A/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/