Skip to content
Tcl Source Code Artifact [3efed4a9a6]
Login

Artifact [3efed4a9a6]

Artifact 3efed4a9a60f47f0583787e4fdc23d09e171f9f69448b199870276f671e7fdbf:


---
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][chan] command which supports the same syntax and options.


[chan]: chan.md