[EMAIL PROTECTED] wrote:
> Hello rebols!
> I wonder if someone could help me here. I keep getting the following
> error when I run my program.
>
> ** Script Error: read expected source argument of type: file url
> object block.
> ** Where: foreach file read dir [
> if find file "htm" [
> page: join dir file
> save page replace read page "width=530" "width=480"
> ]
> ]
>
dir: %/D/Rebol/Contra
dir? dir
== true ; hmmm :-)
foreach file read dir [if find file "htm"[ print file]]
** Access Error: Cannot open /D/REBOL/Contra.
** Where: foreach file read dir [if find file "htm" [print file]]
so all I need to do is:
dir: %/D/Rebol/Contra/ ; note the extra slash at the end of line
Of course, the problem can be somewhere else :-)
-pekr-
> Thanks in advance,
>
> Tom