Hi, REBOL has much more expressive power than the C preprocessor :-) It's quite easy to convert programs from other languages to REBOL. rootdir: %/config/ a: open/read join rootdir "log.txt" b: open/read join rootdir "prog.cfg" -- Michal Kracik [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"); ... > > 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
