Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: Embedded us...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 905 of 990
Post > Topic >>

Re: Embedded use of $ZEOF in sub-loops

by Julius Kavay <kavay@[EMAIL PROTECTED] > Nov 5, 2007 at 09:46 PM

Sébastien de Mapias wrote:

Hi Sebastian,

I think, you have one (or more) empty line(s) in your
list.txt file, but no error checking in your code.
Try this (I have no MSM running right now, this is Cache code):

defil
	d $zu(68,40,1)    	; set $zeof as in MSM
	d $zu(168,"c:\temp\cc") ; set working directory
	
	set fileList="list.txt"
	o fileList:("r"):0 e  w "Can't open "_fileList,! q
									   
	f  u fileList r title q:$zeof  d
	. u $p w "title: """_title_"""",!
	. set article=title i 0
	. o:article]"" article:("r"):0 e  u $p w "Can't open article: ",article,!
q
	.
	. f  u article r htmlLine q:$zeof  d
	. . u $p w htmlLine,!
	. c article
									   
	c fileList
	w "do I get here ?",!
	q

list.txt
----------
art1.txt
art2.txt
art3.txt

art5.txt
----------

art1.txt
---------------
html art1 lin1
html art1 lin2


html art1 lin4
----------------

art2.txt
----------------
html art2 lin1
html art2 lin2
html art2 lin3
html art1 lin4
----------------


d ^defil

title: "art1.txt"
html art1 lin1
html art1 lin2


html art1 lin4
title: "art2.txt"
html art2 lin1
html art2 lin2
html art2 lin3
html art1 lin4


title: "art3.txt"
Can't open article: art3.txt
title: ""
Can't open article: 
title: "art5.txt"
Can't open article: art5.txt
do I get here ?



hth and
have a nice day
julius

--
 




 5 Posts in Topic:
Embedded use of $ZEOF in sub-loops
=?iso-8859-1?q?S=E9bastie  2007-11-05 11:37:51 
Re: Embedded use of $ZEOF in sub-loops
=?iso-8859-1?q?S=E9bastie  2007-11-05 12:11:02 
Re: Embedded use of $ZEOF in sub-loops
Julius Kavay <kavay@[E  2007-11-05 21:46:01 
Re: Embedded use of $ZEOF in sub-loops
Ed de Moel <demoel@[EM  2007-11-06 04:53:53 
Re: Embedded use of $ZEOF in sub-loops
"Maury Pepper"   2007-11-07 15:48:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 0:16:37 CDT 2008.