to open a port to the console just use
  f: open [scheme: 'console]
or
  f: open/binary [scheme: 'console]

and to redefine stdout to any port you want:
  system/ports/output: f

Cal Dixon ([EMAIL PROTECTED])

-><-

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [REBOL] [REBOL] stand output handle?
>Date: Fri, 31 Mar 2000 8:55:27 -0900
>
>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
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Reply via email to