DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
puts(TCL)
puts -- write to a file
Synopsis
puts
[
-nonewline
] [
fileId
]
string
Description
Writes the characters given by
string
to the file given by
fileId
.
fileId
must be the return value from a previous call to
open
, or it may be
stdout
or
stderr
to refer to one of the standard I/O channels; it must refer to a file that was opened for writing. If no
fileId
is specified then it defaults to
stdout
.
puts
normally outputs a newline character after
string
, but this feature may be suppressed by specifying the
-nonewline
switch. Output to files is buffered internally by Tcl; the
flush
command may be used to force buffered characters to be output.
02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005