DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
read_file(1tcl)
read_file -- read file and return contents as string
Synopsis
read_file
[
-nonewline
]
fileName
" "
read_file
fileName numBytes
Description
This procedure reads the file
fileName
and returns the contents as a string. If
-nonewline
is specified, then the last character of the file is discarded if it is a newline. The second form specifies exactly how many bytes will be read and returned, unless there are fewer than
numBytes
bytes left in the file; in this case, all the remaining bytes are returned.
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004