Name

read

read [-nonewline] channelId [numBytes]

Read characters from the I/O channel channelId. Read the number of bytes specified by numBytes, or if omitted, read all characters until end of file. With option -nonewline, discard the last character in the file if it is a newline. Returns the characters read.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.