Rebol Programming/echo
USAGE:
editECHO target
DESCRIPTION:
editCopies console output to a file.
ECHO is a function value.
ARGUMENTS
edit- target -- (Type: file none logic)
(SPECIAL ATTRIBUTES)
edit- catch
SOURCE CODE
editecho: 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] ] ]