---
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 \fBgets\fR command has been superceded by the \fBchan gets\fR command which supports the same syntax and options.