Skip to content
Tcl Source Code Artifact [820178443b]
Login

Artifact [820178443b]

Artifact 820178443b1bc2f795d1886c2037b5a555d7651fc8b7e59b734964fb8b02093a:


---
CommandName: gets
ManualSection: n
Version: 7.5
TclPart: Tcl
TclDescription: Tcl Built-In Commands
Links:
 - chan(n)
Copyright:
 - Copyright (c) 1993 The Regents of the University of California.
 - Copyright (c) 1994-1996 Sun Microsystems, Inc.
---

# Name

gets - Read a line from a channel

# Synopsis

::: {.synopsis} :::
[gets]{.cmd} [channel]{.arg} [varName]{.optarg}
:::

# Description

The **gets** command has been superceded by the **chan gets** command which supports the same syntax and options.