Rebol Programming/echo
USAGE:Edit
ECHO target
DESCRIPTION:Edit
Copies console output to a file.
ECHO is a function value.
ARGUMENTSEdit
- target -- (Type: file none logic)
(SPECIAL ATTRIBUTES)Edit
- catch
SOURCE CODEEdit
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] ] ]