I have ...
set line [read $fid]
puts $line\n
set line [lreplace $line 0 0] ;# remove the first element
puts $line\n
The result of the 1st "puts", it displays the data correctly with the original new line returns (i.e. \n).
However, the result of the 2nd "puts" (after the lreplace cmd), it displays the data in one continuous stream without interpreting the new line returns.
What happened to the orignal line returns ???? (Note: it has nothing to do with the lreplace cmd - I could have replace any index of the original list)
set line [read $fid]
puts $line\n
set line [lreplace $line 0 0] ;# remove the first element
puts $line\n
The result of the 1st "puts", it displays the data correctly with the original new line returns (i.e. \n).
However, the result of the 2nd "puts" (after the lreplace cmd), it displays the data in one continuous stream without interpreting the new line returns.
What happened to the orignal line returns ???? (Note: it has nothing to do with the lreplace cmd - I could have replace any index of the original list)