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


|