Skip to content
Tcl Source Code Artifact [8cacea48b2]
Login

Artifact [8cacea48b2]

Artifact 8cacea48b2cfbef44af9aed0046a4db6d432593bfdddf715b924692bc7d62550:


---
CommandName: gets
title: 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