></B> and <B><A HREF="fblocked.html">fblocked</A></B> commands can be used to distinguish
these three cases.
<H3><A NAME="M5">EXAMPLE</A></H3>
This example reads a file one line at a time and prints it out with
the current line number attached to the start of each line.
<P>
<PRE>set chan [open &quot;some.file.txt&quot;]
set lineNumber 0
while {[<B>gets</B> $chan line] &gt;= 0} {
    puts &quot;[incr lineNumber]: $line&quot;
}
close $chan</PRE>
<H3><A NAME="M6">SEE ALSO</A></H3>
<B><A HREF="file.html">file</