Hi Chuck,

I assume your pages have more than the code-block in them,
then you'd need something like: 

repeat x 10 [
        page: read join %page [x %.html]
        parse page [to "<!-- begin content -->" copy code thru "<!--end content -->" 
to end]
        write/append %allpages.html code
]

this would extract the comments, too. If you don't want them, 
just exchange to and thru.


hope this helps,

Ingo


Those were the words of [EMAIL PROTECTED]:
> 
> Is this what you're looking for?
> repeat x 10 [
>       write/append %allpages.html read join %page [x %.html]
> ]
> ; this will continue to append to the file if you run it multiple
> ; times so be careful.  If you want to avoid that behavior, you can
> ; 'delete %allpages.html' first
> 
> Sterling
> 
> >     This is the code block (including the !comments) for 1 page of
> > the 10 pages that I want to extract to 1 common file. For
> > clarity, this code would appear on page1.html; I wish to combine
> > this code block with all the other different code blocks on pages
> > page2.html, page3.html... page10.html into one file -
> > allpages.html. What is the Rebol code necessary to do this? I'm
> > no programmer, and haven't seen a stock script from the Rebol
> > online library that does this.
> >     If anyone has a clude to lend me, I'd really appreciate it.
> > Thank you in advance.
> > 
> > Sincerely,
> > Chuck Heffner
> > [EMAIL PROTECTED]
> 
Hi Rebols,




regards,

Ingo

--  _     .                                _
ingo@)|_ /|  _| _  <We ARE all ONE   www._|_o _   _ ._ _  
www./_|_) |o(_|(/_  We ARE all FREE> ingo@| |(_|o(_)| (_| 
http://www.2b1.de/Rebol/                     ._|      ._|

Reply via email to