summaryrefslogtreecommitdiffstats
path: root/doc/read.n
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2004-10-27 14:24:37 (GMT)
committerdkf <dkf@noemail.net>2004-10-27 14:24:37 (GMT)
commit607effd0dd6e52b3730f13b0c882db8dbfcb7e97 (patch)
treec19b22fbb2165682630fecbf3779e53b26c9002f /doc/read.n
parenta883a89018ec8df173b7e0d33e814488e407d8a5 (diff)
downloadtcl-607effd0dd6e52b3730f13b0c882db8dbfcb7e97.zip
tcl-607effd0dd6e52b3730f13b0c882db8dbfcb7e97.tar.gz
tcl-607effd0dd6e52b3730f13b0c882db8dbfcb7e97.tar.bz2
More minor doc fixes
FossilOrigin-Name: 83ab8061842a2bb28ef192d378c328fd7a7984e6
Diffstat (limited to 'doc/read.n')
-rw-r--r--doc/read.n6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/read.n b/doc/read.n
index 3623dc6..0964040 100644
--- a/doc/read.n
+++ b/doc/read.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: read.n,v 1.8 2004/04/19 22:47:37 dkf Exp $
+'\" RCS: @(#) $Id: read.n,v 1.9 2004/10/27 14:24:37 dkf Exp $
'\"
.so man.macros
.TH read n 8.1 Tcl "Tcl Built-In Commands"
@@ -73,14 +73,12 @@ In this form \fBread\fR blocks until the reception of the end-of-file
character, see \fBfconfigure -eofchar\fR. If there no end-of-file
character has been configured for the channel, then \fBread\fR will
block forever.
-
.SH "EXAMPLE"
This example code reads a file all at once, and splits it into a list,
with each line in the file corresponding to an element in the list:
-
.CS
set fl [open /proc/meminfo]
-set data [read $fl]
+set data [\fBread\fR $fl]
close $fl
set lines [split $data \\n]
.CE