Name

lgets

lgets fileId [varName]

Read a Tcl list from the file given by file identifier fileId, discarding the terminating newline. If varName is specified, the command writes the list to the variable and returns the number of characters read; otherwise, it returns the list.

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.