[EMAIL PROTECTED] wrote:
> Hello fellow REBOLites,
>
> I want to compose filenames, I have a known directory that contains
> a predefined set of files, now I want to open those files. In C I'd
> do something like:
>
> #define ROOTDIR "/config/"
>
> fopen( ROOTDIR "log.txt", "r); ...
> fopen( ROOTDIR "prog.cfg", "r"); ...
>
->> root-dir: %/D/Rebol/
== %/D/Rebol/
->> print load join root-dir "Contra/"
Webol/ YARWeS/ RebolToHTML/ xmltest/ Messenger/ REBOL.exe betaadd1950.htm
beta1946.html scroll.r N
EWSITE.LST feedback.r vzvz.vvv rebol.r user.r sites checksite.r etc, etc.
->> exists? root-dir/Contra/user.r
== true
Is it what you wanted?
-pekr-
>
> Thus I could change the root directory by changing just one line of
> code.
>
> Can someone provide a REBOL example of this?
>
> Best regards,
> Andy