[REBOL]
From: sharriff:aina:med-iq at: 17-Nov-2000 18:21
Hi!
Can someone tell me why the second snippet sometimes fails?
; selects all HTML or HTM files and stores them in a separate list
foreach file file-list [if find/any file ".ht?" [append toc-list :file]]
**** exits sometimes with a read error??!! ***
; parse the titles from the html and htm files and store the titles
foreach file toc-list [temp-file: read file
parse temp-file [thru "<title>" copy title-list to
</title>
]
print title-list]
****** trying to save titles also produces an error ***
titles: make block! 0
foreach file toc-list [temp-file: read file
parse temp-file [thru "<title>" copy title-list to
</title>
]
append titles title-list]
Sharriff Aina
trying to get rid of my REBOL training wheels