I believe I have seen an example where a port was opened to the console
(input and/or output?). It was probably somewhere on rebol.org. I haven't
played with explicit opens to a file. Does rebol keep a "file handle"
entity, or is it just a port?
I'm going to be doing something very similar to this soon, but my 'either
statement will be doing the actual printing/writing, and so for the "stdout"
part I'll just be using a regular 'print.
Michael Jelinek
IS - Data Warehouse
CalFarm Insurance
[EMAIL PROTECTED]
924-4068
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 31, 2000 9:55 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] [REBOL] stand output handle?
Does rebol have a standard output handle like c?
Example : In "C" I can write something like this:
//=======================================================
FILE* f;
IF write_to_file THEN
f = fopen("test.htm","w")
ELSE
f = stdout;
ENDIF
fprintf(f,"This could be written to the console\n"
"OR to the console OR as web content");
// thanks in advance
Tim
BTW, that's not psuedo-code