tell - Online Linux Manual Page
Section : n
Updated : 8.1
Source : Tcl
Note : Tcl Built-In Commands
NAMEtell − Return current access position for an open channel
SYNOPSIStell channelId
.\}
DESCRIPTIONReturns an integer string giving the current access position in channelId. This value returned is a byte offset that can be passed to seek in order to set the channel to a particular position. Note that this value is in terms of bytes, not characters like read. The value returned is -1 for channels that do not support seeking. ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdin, stdout, or stderr), the return value from an invocation of open or socket, or the result of a channel creation command provided by a Tcl extension.
EXAMPLERead a line from a file channel only if it starts with foobar: # Save the offset in case we need to undo the read...
set offset [tell $chan]
if {[read $chan 6] eq "foobar"} {
gets $chan line
} else {
set line {}
# Undo the read...
seek $chan $offset
}
SEE ALSOfile(n), open(n), close(n), gets(n), seek(n), Tcl_StandardChannels(3)
KEYWORDSaccess position, channel, seeking 0
Johanes Gumabo
Data Size : 6,629 byte
man-tell.nBuild : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 31 / 2,346,204
Visitor ID : :
Visitor IP : 216.73.216.115 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 20 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence_block|26|(null)|(null)|-1|140) (parse_manual_page_|254|tell.n|282/140|══─}─══|.══─}─══
) (htmlprn|160|tell.n|282/140|.══─}─══|.══─}─══
) (rof_escape_sequence|93|tell.n|282/141|\}|.\}
) (parse_manual_page_|254|tell.n|282/141|\}|.\}
)