Rebol Programming/echo

= USAGE: = ECHO target

= DESCRIPTION: = Copies console output to a file.

ECHO is a function value. = ARGUMENTS =
 * target -- (Type: file none logic)

= (SPECIAL ATTRIBUTES) =
 * catch

= SOURCE CODE = echo: func [ "Copies console output to a file." [catch] target [file! none! logic!] ][   if port? system/ports/echo [ close system/ports/echo system/ports/echo: none ]    if target = true [target: %rebol-echo.txt] if file? target [ system/ports/echo: throw-on-error [open/write/new/direct target] ] ]